heroku上Play Framework的共享缓存

时间:2014-05-13 13:32:37

标签: heroku memcached playframework-2.2

我希望在heroku上托管我的Play 2.2.2应用程序的共享缓存。

我在mem文件中添加了memcachier插件:

memcached=enabled

memcached.host=${MEMCACHE_SERVERS}
memcached.user=${MEMCACHE_USERNAME}
memcached.password=${MEMCACHE_PASSWORD}

但缓存永远不会被击中。它是否应该?

1 个答案:

答案 0 :(得分:0)

我错过了播放插件:在 build.sbt

libraryDependencies ++= Seq(
  jdbc, javaCore, javaJdbc, javaEbean, anorm, filters,
  "ws.securesocial" %% "securesocial" % "2.1.3",
  "com.github.mumoshu" %% "play2-memcached" % "0.3.0.2"
)

resolvers ++= Seq(
  Resolver.sonatypeRepo("releases"),
  "Spy Repository" at "http://files.couchbase.com/maven2"
)

https://github.com/mumoshu/play2-memcached