Package io.github.xanthic.cache.spring
Class XanthicSpringCache
java.lang.Object
org.springframework.cache.support.AbstractValueAdaptingCache
io.github.xanthic.cache.spring.XanthicSpringCache
- All Implemented Interfaces:
org.springframework.cache.Cache
public class XanthicSpringCache
extends org.springframework.cache.support.AbstractValueAdaptingCache
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.cache.Cache
org.springframework.cache.Cache.ValueRetrievalException, org.springframework.cache.Cache.ValueWrapper -
Constructor Summary
ConstructorsConstructorDescriptionXanthicSpringCache(String name, io.github.xanthic.cache.api.Cache<Object, Object> cache) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidbooleanevictIfPresent(@NotNull Object key) <T> T@NotNull StringgetName()@NotNull Objectprotected Objectvoidorg.springframework.cache.Cache.ValueWrapperputIfAbsent(@NotNull Object key, Object value) Methods inherited from class org.springframework.cache.support.AbstractValueAdaptingCache
fromStoreValue, get, get, isAllowNullValues, toStoreValue, toValueWrapperMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.cache.Cache
invalidate
-
Constructor Details
-
XanthicSpringCache
-
-
Method Details
-
getName
-
getNativeCache
-
get
-
put
-
putIfAbsent
-
evict
-
evictIfPresent
-
clear
public void clear() -
lookup
- Specified by:
lookupin classorg.springframework.cache.support.AbstractValueAdaptingCache
-