protected class RedisCache.RedisAsyncCache extends Object implements io.micronaut.cache.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,
io.micronaut.core.type.Argument<T> requiredType) |
<T> CompletableFuture<T> |
get(Object key,
io.micronaut.core.type.Argument<T> requiredType,
Supplier<T> supplier) |
String |
getName() |
io.lettuce.core.api.StatefulConnection<?,?> |
getNativeCache() |
CompletableFuture<Boolean> |
invalidate(Object key) |
CompletableFuture<Boolean> |
invalidateAll() |
CompletableFuture<Boolean> |
put(Object key,
Object value) |
<T> CompletableFuture<Optional<T>> |
putIfAbsent(Object key,
T value) |
public <T> CompletableFuture<Optional<T>> get(Object key, io.micronaut.core.type.Argument<T> requiredType)
get
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>
public <T> CompletableFuture<T> get(Object key, io.micronaut.core.type.Argument<T> requiredType, Supplier<T> supplier)
get
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>
public <T> CompletableFuture<Optional<T>> putIfAbsent(Object key, T value)
putIfAbsent
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>
public CompletableFuture<Boolean> put(Object key, Object value)
put
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>
public CompletableFuture<Boolean> invalidate(Object key)
invalidate
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>
public CompletableFuture<Boolean> invalidateAll()
invalidateAll
in interface io.micronaut.cache.AsyncCache<io.lettuce.core.api.StatefulConnection<?,?>>
public String getName()
getName
in interface io.micronaut.cache.Cache<io.lettuce.core.api.StatefulConnection<?,?>>
public io.lettuce.core.api.StatefulConnection<?,?> getNativeCache()
getNativeCache
in interface io.micronaut.cache.Cache<io.lettuce.core.api.StatefulConnection<?,?>>