Class RedisCache.RedisAsyncCache
java.lang.Object
io.micronaut.configuration.lettuce.cache.RedisCache.RedisAsyncCache
- All Implemented Interfaces:
io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],
,byte[]>> io.micronaut.cache.Cache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
- Enclosing class:
- RedisCache
protected class RedisCache.RedisAsyncCache
extends Object
implements io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
Redis Async cache implementation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> CompletableFuture<Optional<T>>
<T> CompletableFuture<T>
getName()
io.lettuce.core.api.StatefulConnection<byte[],
byte[]> invalidate
(Object key) <T> CompletableFuture<Optional<T>>
putIfAbsent
(Object key, T value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.cache.AsyncCache
get, get
Methods inherited from interface io.micronaut.cache.Cache
getCacheInfo
-
Constructor Details
-
RedisAsyncCache
protected RedisAsyncCache()
-
-
Method Details
-
get
public <T> CompletableFuture<Optional<T>> get(Object key, io.micronaut.core.type.Argument<T> requiredType) - Specified by:
get
in interfaceio.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-
get
public <T> CompletableFuture<T> get(Object key, io.micronaut.core.type.Argument<T> requiredType, Supplier<T> supplier) - Specified by:
get
in interfaceio.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceio.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-
put
- Specified by:
put
in interfaceio.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-
invalidate
- Specified by:
invalidate
in interfaceio.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-
invalidateAll
- Specified by:
invalidateAll
in interfaceio.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-
getName
- Specified by:
getName
in interfaceio.micronaut.cache.Cache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-
getNativeCache
public io.lettuce.core.api.StatefulConnection<byte[],byte[]> getNativeCache()- Specified by:
getNativeCache
in interfaceio.micronaut.cache.Cache<io.lettuce.core.api.StatefulConnection<byte[],
byte[]>>
-