Package io.quarkus.cache.runtime
Class AbstractCache
java.lang.Object
io.quarkus.cache.runtime.AbstractCache
- All Implemented Interfaces:
Cache
- Direct Known Subclasses:
CaffeineCacheImpl,NoOpCache
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Cache>
TReturns this cache as an instance of the provided type if possible.Returns the unique and immutable default key for the current cache.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.cache.Cache
get, getAsync, getName, invalidate, invalidateAll, invalidateIf
-
Field Details
-
NULL_KEYS_NOT_SUPPORTED_MSG
- See Also:
-
-
Constructor Details
-
AbstractCache
public AbstractCache()
-
-
Method Details
-
getDefaultKey
Description copied from interface:CacheReturns the unique and immutable default key for the current cache. This key is used by the annotations caching API when a no-args method annotated with@io.quarkus.cache.CacheResultor@io.quarkus.cache.CacheInvalidateis invoked. It can also be used with the programmatic caching API.- Specified by:
getDefaultKeyin interfaceCache- Returns:
- default cache key
-
as
Description copied from interface:CacheReturns this cache as an instance of the provided type if possible.
-