Class NullsCache
-
- All Implemented Interfaces:
-
org.springframework.cache.Cache
public class NullsCache implements CacheUnified processing cache for nulls, supports weak and skip. * >0 : cache size, default ttl=3600s; * 0 : no nulls cached; * other values are not handled uniformly.- Since:
2022-03-13
trydofor
-
-
Constructor Summary
Constructors Constructor Description NullsCache(Cache cache, int size, int live)
-
Method Summary
Modifier and Type Method Description StringgetName()ObjectgetNativeCache()Cache.ValueWrapperget(@NotNull() Object key)<T> Tget(@NotNull() Object key, Class<T> type)<T> Tget(@NotNull() Object key, @NotNull() Callable<T> valueLoader)voidput(@NotNull() Object key, Object value)voidevict(@NotNull() Object key)voidclear()-
-
Method Detail
-
getNativeCache
@NotNull() Object getNativeCache()
-
clear
void clear()
-
-
-
-