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
Decides whether this cache will use legacy ScalaCache (non-customisable) serialisation/deserialisation (i.e.
Decides whether this cache will use legacy ScalaCache (non-customisable) serialisation/deserialisation (i.e. rely on Jedis's transformers for serialisation) or use the newer call-site customisable Codec.
Defaults to false
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
Contains implementations of all methods that can be implemented independent of the type of Redis client. This is everything apart from
removeAll
, which needs to be implemented differently for sharded Redis.