Class JetCacheSpringCache
java.lang.Object
org.springframework.cache.support.AbstractValueAdaptingCache
cn.herodotus.engine.cache.jetcache.enhance.JetCacheSpringCache
- All Implemented Interfaces:
org.springframework.cache.Cache
public class JetCacheSpringCache
extends org.springframework.cache.support.AbstractValueAdaptingCache
Description: 基于 JetCache 的 Spring Cache 扩展
- Author:
- : gengwei.zheng
- Date:
- : 2022/7/23 11:11
-
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
ConstructorsConstructorDescriptionJetCacheSpringCache(String cacheName, com.alicp.jetcache.Cache<Object, Object> cache, boolean allowNullValues) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()voidbooleanevictIfPresent(Object key) <T> TgetName()protected Objectvoidorg.springframework.cache.Cache.ValueWrapperputIfAbsent(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, retrieve, retrieve
-
Constructor Details
-
JetCacheSpringCache
-
-
Method Details
-
getName
-
getNativeCache
-
lookup
- Specified by:
lookupin classorg.springframework.cache.support.AbstractValueAdaptingCache
-
get
-
put
-
putIfAbsent
-
evict
-
evictIfPresent
-
clear
public void clear()
-