public class RedisReactiveCache<E> extends Object implements ReactiveCache<E>
| Constructor and Description |
|---|
RedisReactiveCache(String redisKey,
org.springframework.data.redis.core.ReactiveRedisOperations<Object,Object> operations,
ReactiveCache<E> localCache) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Void> |
clear() |
reactor.core.publisher.Mono<Void> |
evict(Object key) |
reactor.core.publisher.Mono<Void> |
evictAll(Iterable<?> key) |
reactor.core.publisher.Flux<E> |
getAll(Object... keys) |
reactor.core.publisher.Flux<E> |
getFlux(Object key) |
reactor.core.publisher.Mono<E> |
getMono(Object key) |
protected <T> reactor.core.publisher.Mono<T> |
handleError(Throwable error) |
reactor.core.publisher.Mono<Void> |
put(Object key,
org.reactivestreams.Publisher<E> data) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflux, monopublic RedisReactiveCache(String redisKey, org.springframework.data.redis.core.ReactiveRedisOperations<Object,Object> operations, ReactiveCache<E> localCache)
public reactor.core.publisher.Flux<E> getFlux(Object key)
getFlux in interface ReactiveCache<E>protected <T> reactor.core.publisher.Mono<T> handleError(Throwable error)
public reactor.core.publisher.Mono<E> getMono(Object key)
getMono in interface ReactiveCache<E>public reactor.core.publisher.Mono<Void> put(Object key, org.reactivestreams.Publisher<E> data)
put in interface ReactiveCache<E>public reactor.core.publisher.Mono<Void> evictAll(Iterable<?> key)
evictAll in interface ReactiveCache<E>public reactor.core.publisher.Flux<E> getAll(Object... keys)
getAll in interface ReactiveCache<E>public reactor.core.publisher.Mono<Void> evict(Object key)
evict in interface ReactiveCache<E>public reactor.core.publisher.Mono<Void> clear()
clear in interface ReactiveCache<E>Copyright © 2016–2021. All rights reserved.