Package ru.tinkoff.kora.cache.caffeine
Class AbstractCaffeineCache<K,V>
java.lang.Object
ru.tinkoff.kora.cache.caffeine.AbstractCaffeineCache<K,V>
- All Implemented Interfaces:
ru.tinkoff.kora.cache.Cache<K,,V> CaffeineCache<K,V>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCaffeineCache(String name, CaffeineCacheConfig config, CaffeineCacheFactory factory, CaffeineCacheTelemetry telemetry) -
Method Summary
Modifier and TypeMethodDescriptioncomputeIfAbsent(Collection<K> keys, Function<Set<K>, Map<K, V>> mappingFunction) computeIfAbsent(K key, Function<K, V> mappingFunction) computeIfAbsentAsync(Collection<K> keys, Function<Set<K>, reactor.core.publisher.Mono<Map<K, V>>> mappingFunction) reactor.core.publisher.Mono<V>computeIfAbsentAsync(K key, Function<K, reactor.core.publisher.Mono<V>> mappingFunction) get(Collection<K> keys) getAsync(Collection<K> keys) reactor.core.publisher.Mono<V>voidinvalidate(Collection<K> keys) voidinvalidate(K key) voidreactor.core.publisher.Mono<Boolean>reactor.core.publisher.Mono<Boolean>invalidateAsync(Collection<K> keys) reactor.core.publisher.Mono<Boolean>invalidateAsync(K key) reactor.core.publisher.Mono<V>Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ru.tinkoff.kora.cache.Cache
asLoadable
-
Constructor Details
-
AbstractCaffeineCache
protected AbstractCaffeineCache(String name, CaffeineCacheConfig config, CaffeineCacheFactory factory, CaffeineCacheTelemetry telemetry)
-
-
Method Details
-
get
-
get
-
computeIfAbsent
-
computeIfAbsent
-
put
-
invalidate
-
invalidate
-
invalidateAll
public void invalidateAll() -
getAsync
-
getAsync
-
putAsync
-
computeIfAbsentAsync
-
computeIfAbsentAsync
-
invalidateAsync
-
invalidateAsync
-
invalidateAllAsync
-