看起来Redis模块只适用于Play 1.x: http://www.playframework.com/modules/redis
使用Play 2.2应用程序使用Redis数据库需要什么?
答案 0 :(得分:1)
它受到支持,并且在一个月前升级为支持Play 2.2:
见这里:https://github.com/typesafehub/play-plugins/blob/master/redis/sample/project/Build.scala
import sbt._
import Keys._
object ApplicationBuild extends Build {
val appName = "j"
val appVersion = "1.0-SNAPSHOT"
val appDependencies = Seq(
"com.typesafe" %% "play-plugins-redis" % "2.2.0",
"com.typesafe.play" %% "play-cache" % "2.2.0"
)
val main = play.Project(appName, appVersion, appDependencies).settings(
// Add your own project settings here
)
}
这里说它是一个用于Jedis(Java)和Sedis(Scala)的插件: https://github.com/typesafehub/play-plugins/tree/master/redis
所以你可能想要使用Jedis。