文件名称:brando:使用Akka的IO包编写的Redis客户端
文件大小:476KB
文件格式:ZIP
更新时间:2024-05-27 13:42:17
Scala
白兰度 与一起使用的轻量级Redis客户端。 使用 在您的build.sbt中 resolvers += "chrisdinn" at "http://chrisdinn.github.io/releases/" libraryDependencies += "com.digital-achiever" %% "brando" % "3.0.3" 入门 Brando是围绕的轻量级包装。 使用服务器主机和端口创建Redis actor。 import brando._ val redis = system.actorOf(Redis("localhost", 6379)) 如果要使用数据库和密码,则应指定它们。 val redis = system.actorOf(Redis("localhost", 6379, database = 5, auth = "password"