RedisCacheBase
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.
Type members
Types
Value members
Abstract methods
Concrete methods
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.
- Type Params
- T
return type of the block
- Value Params
- f
block that uses the Jedis client.
- Returns
the result of executing the block
Inherited methods
- Definition Classes
- AbstractCache -> CacheAlg
- Inherited from
- AbstractCache
- Definition Classes
- AbstractCache -> Cache
- Inherited from
- AbstractCache
- Definition Classes
- AbstractCache -> Cache
- Inherited from
- AbstractCache
Output a debug log to record the result of a cache lookup
Output a debug log to record the result of a cache lookup
- Type Params
- A
the type of the cache value
- Value Params
- key
the key that was looked up
- result
the result of the cache lookup
- Inherited from
- LoggingSupport
Output a debug log to record a cache insertion/update
Output a debug log to record a cache insertion/update
- Value Params
- key
the key that was inserted/updated
- ttl
the TTL of the inserted entry
- Inherited from
- LoggingSupport
- Definition Classes
- AbstractCache -> CacheAlg
- Inherited from
- AbstractCache