Package com.helixframework.cache.redis
Class RedisCacheService<V>
java.lang.Object
com.helixframework.cache.BaseCacheService<String,V>
com.helixframework.cache.redis.RedisCacheService<V>
- Type Parameters:
V- The type of values stored in the cache.
- All Implemented Interfaces:
com.helixframework.cache.CacheService<String,V>
RedisCacheService is an implementation of a cache service backed by a Redis datastore.
It extends the BaseCacheService and provides methods to interact with Redis for storing, retrieving,
and managing cache entries.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class for constructing instances ofRedisCacheService. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> RedisCacheService.Builder<V>Constructs a new Builder instance for configuring and creating an instance ofRedisCacheService.protected voiddoClear()protected voidprotected voidprotected voidMethods inherited from class com.helixframework.cache.BaseCacheService
clear, evict, get, getName, put, put
-
Method Details
-
builder
Constructs a new Builder instance for configuring and creating an instance ofRedisCacheService.- Type Parameters:
V- The type of the values to be stored in the cache- Parameters:
valueClass- The class of the value type. This parameter ensures type safety when building the cache service. Must not be null- Returns:
- A new Builder instance for configuring and constructing the cache service
-
doGet
-
doPut
-
doPut
-
doEvict
-
doClear
protected void doClear()
-