You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 9, 2019. It is now read-only.
Cache API is working correctly when called explicitly (eg. in a method, Cache.getOrElse(...)), but not from the @Cached annotation.
Redis is configured correctly. From the logs:
[info] application - Redis Plugin enabled. Connecting to Redis on localhost:6379 with timeout 2000.
[info] application - Redis Plugin pool configuration: redis.clients.jedis.JedisPoolConfig@5037dd45[maxIdle=8,minIdle=0,maxActive=8,maxWait=-1,whenExhaustedAction=1,testOnBorrow=false,testOnReturn=false,testWhileIdle=true,timeBetweenEvictionRunsMillis=30000,numTestsPerEvictionRun=-1,minEvictableIdleTimeMillis=60000,softMinEvictableIdleTimeMillis=-1,lifo=true]
Plugin is:
550:com.typesafe.plugin.RedisPlugin
Trying to cache a Result (SimpleResult):
@Cached(key = "list")
public static Result list()
{
return ok(index.render("message"));
}
Seeing error:
[warn] application - could not serialize key:list and value:SimpleResult(200, Map(Content-Type -> text/html;charset=utf-8)) ex:java.io.IOException: could not serialize: SimpleResult(200, Map(Content-Type -> text/html;charset=utf-8))
Play 2.2.2 with both "com.typesafe" %% "play-plugins-redis" % "2.2.0" in libraryDependencies and resolvers += "Sedis repository" at "http://pk11-scratch.googlecode.com/svn/trunk/"
Looks to me like the SimpleResult object is not being serialized correctly.
The text was updated successfully, but these errors were encountered:
Cache API is working correctly when called explicitly (eg. in a method,
Cache.getOrElse(...)
), but not from the@Cached
annotation.Redis is configured correctly. From the logs:
Plugin is:
Trying to cache a Result (SimpleResult):
Seeing error:
Play 2.2.2 with both
"com.typesafe" %% "play-plugins-redis" % "2.2.0"
inlibraryDependencies
andresolvers += "Sedis repository"
at"http://pk11-scratch.googlecode.com/svn/trunk/"
Looks to me like the
SimpleResult
object is not being serialized correctly.The text was updated successfully, but these errors were encountered: