protected class RedisCache.RedisAsyncCache extends Object implements AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>
| Modifier | Constructor and Description | 
|---|---|
protected  | 
RedisAsyncCache()  | 
| Modifier and Type | Method and Description | 
|---|---|
<T> CompletableFuture<Optional<T>> | 
get(Object key,
   Argument<T> requiredType)
Resolve the given value for the given key. 
 | 
<T> CompletableFuture<T> | 
get(Object key,
   Argument<T> requiredType,
   Supplier<T> supplier)
Resolve the given value for the given key. 
 | 
String | 
getName()  | 
io.lettuce.core.api.StatefulConnection<?,?> | 
getNativeCache()  | 
CompletableFuture<Boolean> | 
invalidate(Object key)
Invalidate the value for the given key. 
 | 
CompletableFuture<Boolean> | 
invalidateAll()
Invalidate all cached values within this cache. 
 | 
CompletableFuture<Boolean> | 
put(Object key,
   Object value)
Cache the specified value using the specified key. 
 | 
<T> CompletableFuture<Optional<T>> | 
putIfAbsent(Object key,
           T value)
Cache the specified value using the specified key if it is not already present. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, getpublic <T> CompletableFuture<Optional<T>> get(Object key, Argument<T> requiredType)
AsyncCacheget in interface AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>T - The concrete typekey - The cache keyrequiredType - The required typepublic <T> CompletableFuture<T> get(Object key, Argument<T> requiredType, Supplier<T> supplier)
AsyncCacheSupplier will
 be invoked and the return value cached.get in interface AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>T - The concrete typekey - The cache keyrequiredType - The required typesupplier - The supplier that should be invoked if the value is not foundpublic <T> CompletableFuture<Optional<T>> putIfAbsent(Object key, T value)
AsyncCacheCache the specified value using the specified key if it is not already present.
putIfAbsent in interface AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>T - The concrete typekey - The key with which the specified value is to be associatedvalue - The value to be associated with the specified keyOptional.empty() if the specified value parameter was cachedpublic CompletableFuture<Boolean> put(Object key, Object value)
AsyncCacheCache the specified value using the specified key.
put in interface AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>key - The key with which the specified value is to be associatedvalue - The value to be associated with the specified keypublic CompletableFuture<Boolean> invalidate(Object key)
AsyncCacheinvalidate in interface AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>key - The key to invalidpublic CompletableFuture<Boolean> invalidateAll()
AsyncCacheinvalidateAll in interface AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>public String getName()
public io.lettuce.core.api.StatefulConnection<?,?> getNativeCache()
getNativeCache in interface Cache<io.lettuce.core.api.StatefulConnection<?,?>>