Package io.quarkus.cache.runtime.noop
Class NoOpCache
- java.lang.Object
-
- io.quarkus.cache.runtime.AbstractCache
-
- io.quarkus.cache.runtime.noop.NoOpCache
-
- All Implemented Interfaces:
Cache
public class NoOpCache extends AbstractCache
This class is an internal Quarkus cache implementation. Do not use it explicitly from your Quarkus application. The public methods signatures may change without prior notice.
-
-
Field Summary
-
Fields inherited from class io.quarkus.cache.runtime.AbstractCache
NULL_KEYS_NOT_SUPPORTED_MSG
-
-
Constructor Summary
Constructors Constructor Description NoOpCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Object>get(Object key, Function<Object,Object> valueLoader)StringgetName()voidinvalidate(Object key)voidinvalidateAll()io.smallrye.mutiny.Uni<Void>replaceUniValue(Object key, Object emittedValue)Replaces the cache value associated with the given key by an item emitted by aUni.-
Methods inherited from class io.quarkus.cache.runtime.AbstractCache
getDefaultKey
-
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein classAbstractCache
-
get
public CompletableFuture<Object> get(Object key, Function<Object,Object> valueLoader)
- Specified by:
getin classAbstractCache
-
invalidate
public void invalidate(Object key)
- Specified by:
invalidatein classAbstractCache
-
invalidateAll
public void invalidateAll()
- Specified by:
invalidateAllin classAbstractCache
-
replaceUniValue
public io.smallrye.mutiny.Uni<Void> replaceUniValue(Object key, Object emittedValue)
Description copied from class:AbstractCacheReplaces the cache value associated with the given key by an item emitted by aUni. This method can be called several times for the same key, each call will then always replace the existing cache entry with the given emitted value. If the key no longer identifies a cache entry, this method must not put the emitted item into the cache.- Specified by:
replaceUniValuein classAbstractCache
-
-