protected class RedisCache.RedisAsyncCache
extends java.lang.Object
implements io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
Modifier | Constructor and Description |
---|---|
protected |
RedisAsyncCache() |
Modifier and Type | Method and Description |
---|---|
<T> java.util.concurrent.CompletableFuture<java.util.Optional<T>> |
get(java.lang.Object key,
io.micronaut.core.type.Argument<T> requiredType) |
<T> java.util.concurrent.CompletableFuture<T> |
get(java.lang.Object key,
io.micronaut.core.type.Argument<T> requiredType,
java.util.function.Supplier<T> supplier) |
java.lang.String |
getName() |
io.lettuce.core.api.StatefulConnection<byte[],byte[]> |
getNativeCache() |
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
invalidate(java.lang.Object key) |
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
invalidateAll() |
java.util.concurrent.CompletableFuture<java.lang.Boolean> |
put(java.lang.Object key,
java.lang.Object value) |
<T> java.util.concurrent.CompletableFuture<java.util.Optional<T>> |
putIfAbsent(java.lang.Object key,
T value) |
public <T> java.util.concurrent.CompletableFuture<java.util.Optional<T>> get(java.lang.Object key, io.micronaut.core.type.Argument<T> requiredType)
get
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
public <T> java.util.concurrent.CompletableFuture<T> get(java.lang.Object key, io.micronaut.core.type.Argument<T> requiredType, java.util.function.Supplier<T> supplier)
get
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
public <T> java.util.concurrent.CompletableFuture<java.util.Optional<T>> putIfAbsent(java.lang.Object key, T value)
putIfAbsent
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
public java.util.concurrent.CompletableFuture<java.lang.Boolean> put(java.lang.Object key, java.lang.Object value)
put
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
public java.util.concurrent.CompletableFuture<java.lang.Boolean> invalidate(java.lang.Object key)
invalidate
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
public java.util.concurrent.CompletableFuture<java.lang.Boolean> invalidateAll()
invalidateAll
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
public java.lang.String getName()
getName
in interface io.micronaut.cache.Cache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>
public io.lettuce.core.api.StatefulConnection<byte[],byte[]> getNativeCache()
getNativeCache
in interface io.micronaut.cache.Cache<io.lettuce.core.api.StatefulConnection<byte[],byte[]>>