This commit is contained in:
redkale
2024-06-11 15:38:13 +08:00
parent a1645e8b46
commit 7c28f2c54d
2 changed files with 1 additions and 6 deletions

View File

@@ -8,7 +8,6 @@ import java.time.Duration;
import java.util.Objects;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentSkipListSet;
import java.util.function.Function;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -70,9 +69,6 @@ public class CachedManagerService implements CachedManager, Service {
// 本地缓存Source
protected final CacheMemorySource localSource = new CacheMemorySource("cache-local");
// 缓存schema集合, 用于定时遍历删除过期数据
protected final ConcurrentSkipListSet<String> hashNames = new ConcurrentSkipListSet<>();
// 缓存无效时使用的同步锁
private final ConcurrentHashMap<String, CachedValue> syncLockMap = new ConcurrentHashMap<>();
@@ -263,7 +259,6 @@ public class CachedManagerService implements CachedManager, Service {
/**
* 本地删除缓存数据
*
* @param schema 缓存schema
* @param key 缓存键
* @return 删除数量
*/

View File

@@ -23,7 +23,7 @@ public interface ResourceTypeLoader {
* @param srcObj 依附对象
* @param resourceName 资源名
* @param field 字段对象
* @param attachment
* @param attachment 附加对象
* @return Object
*/
public Object load(