类的使用
org.redkale.cached.spi.CachedValue
-
使用CachedValue的程序包 程序包 说明 org.redkale.cached.spi -
-
org.redkale.cached.spi中CachedValue的使用
类型参数类型为CachedValue的org.redkale.cached.spi中的字段 修饰符和类型 字段 说明 protected ConcurrentHashMap<String,CachedValue>
CachedManagerService. syncLockMap
返回CachedValue的org.redkale.cached.spi中的方法 修饰符和类型 方法 说明 protected <T> CachedValue<T>
CachedManagerService. bothGetCache(String name, String key, int localLimit, Duration expire, Type cacheType)
static <T> CachedValue<T>
CachedValue. create(T value)
protected <T> CachedValue<T>
CachedManagerService. toCacheValue(boolean nullable, T value)
将原始数据函数转换成获取CacheValue数据函数返回变量类型为CachedValue的类型的org.redkale.cached.spi中的方法 修饰符和类型 方法 说明 protected <T> CompletableFuture<CachedValue<T>>
CachedManagerService. bothGetCacheAsync(String name, String key, int localLimit, Duration expire, Type cacheType)
远程异步获取缓存数据, 过期返回nullprotected <T> ThrowSupplier<CachedValue<T>>
CachedManagerService. toCacheSupplier(boolean nullable, ThrowSupplier<T> supplier)
将原始数据函数转换成获取CacheValue数据函数参数类型为CachedValue的org.redkale.cached.spi中的方法 修饰符和类型 方法 说明 static <T> T
CachedValue. get(CachedValue val)
static boolean
CachedValue. isValid(CachedValue val)
protected <T> void
CachedManagerService. localSetCache(String name, String key, int localLimit, Duration expire, Type cacheType, CachedValue<T> cacheVal)
protected <T> CompletableFuture<Void>
CachedManagerService. localSetCacheAsync(String name, String key, int localLimit, Duration expire, Type cacheType, CachedValue<T> cacheVal)
protected <T> void
CachedManagerService. remoteSetCache(String name, String key, int localLimit, Duration expire, Type cacheType, CachedValue<T> cacheVal)
protected <T> void
CachedManagerService. remoteSetCache(String name, String key, Duration expire, Type cacheType, CachedValue<T> cacheVal)
protected <T> CompletableFuture<Void>
CachedManagerService. remoteSetCacheAsync(String name, String key, int localLimit, Duration expire, Type cacheType, CachedValue<T> cacheVal)
protected <T> CompletableFuture<Void>
CachedManagerService. remoteSetCacheAsync(String name, String key, Duration expire, Type cacheType, CachedValue<T> cacheVal)
CompletableFuture<Void>
CachedManagerService.SetterAsyncFunc. set(String name, String key, int localLimit, Duration expire, Type cacheType, CachedValue cacheVal)
void
CachedManagerService.SetterSyncFunc. set(String name, String key, int localLimit, Duration expire, Type cacheType, CachedValue cacheVal)
类型变量类型为CachedValue的org.redkale.cached.spi中的方法参数 修饰符和类型 方法 说明 protected <T> T
CachedManagerService. getSet(CachedManagerService.GetterFunc<CachedValue<T>> getter, CachedManagerService.SetterSyncFunc setter, String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<T> supplier)
获取缓存数据, 过期返回nullprotected <T> CompletableFuture<T>
CachedManagerService. getSetAsync(CachedManagerService.GetterFunc<CompletableFuture<CachedValue<T>>> getter, CachedManagerService.SetterAsyncFunc setter, String name, String key, Type type, boolean nullable, int localLimit, Duration expire, ThrowSupplier<CompletableFuture<T>> supplier)
异步获取缓存数据, 过期返回null
-