a classloader to use when deserializing objects from the cache.
If you are using Play and useLegacySerialization
is true, you should pass in app.classloader
.
set this to true to use Jedis's serialization mechanism to maintain compatibility with ScalaCache 0.7.x or earlier.
a classloader to use when deserializing objects from the cache.
a classloader to use when deserializing objects from the cache.
If you are using Play and useLegacySerialization
is true, you should pass in app.classloader
.
Get the value corresponding to the given key from the cache
Get the value corresponding to the given key from the cache
the type of the corresponding value
cache key
the value, if there is one
Insert the given key-value pair into the cache, with an optional Time To Live.
Insert the given key-value pair into the cache, with an optional Time To Live.
the type of the corresponding value
cache key
corresponding value
Time To Live
Remove the given key and its associated value from the cache, if it exists.
Remove the given key and its associated value from the cache, if it exists. If the key is not in the cache, do nothing.
cache key
set this to true to use Jedis's serialization mechanism to maintain compatibility with ScalaCache 0.7.x or earlier.
set this to true to use Jedis's serialization mechanism to maintain compatibility with ScalaCache 0.7.x or earlier.
Borrow a Jedis client from the pool, perform some operation and then return the client to the pool.
Borrow a Jedis client from the pool, perform some operation and then return the client to the pool.
return type of the block
block that uses the Jedis client
the result of executing the block
Thin wrapper around Jedis that works with sharded Redis.