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 TypeMethodDescriptionvoid
clear()
void
boolean
evictIfPresent
(@NotNull Object key) <T> T
@NotNull String
getName()
@NotNull Object
protected Object
void
org.springframework.cache.Cache.ValueWrapper
putIfAbsent
(@NotNull Object key, Object value) Methods inherited from class org.springframework.cache.support.AbstractValueAdaptingCache
fromStoreValue, get, get, isAllowNullValues, toStoreValue, toValueWrapper
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
lookup
in classorg.springframework.cache.support.AbstractValueAdaptingCache
-