接口的使用
org.redkale.cached.spi.CachedManagerService.GetterFunc
-
使用CachedManagerService.GetterFunc的程序包 程序包 说明 org.redkale.cached.spi -
-
org.redkale.cached.spi中CachedManagerService.GetterFunc的使用
参数类型为CachedManagerService.GetterFunc的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
-