CacheEntry

This commit is contained in:
redkale
2023-12-09 19:05:29 +08:00
parent 7dc6dc6a6d
commit 5b6c978620
2 changed files with 1320 additions and 988 deletions

View File

@@ -3,6 +3,7 @@
*/
package org.redkale.caching;
import java.lang.reflect.Type;
import org.redkale.source.CacheMemorySource;
import org.redkale.source.CacheSource;
@@ -24,4 +25,16 @@ public class CacheFactory {
public static CacheFactory create(CacheSource remoteSource) {
return new CacheFactory(remoteSource);
}
protected long hdelLocal(String map, String key) {
return localSource.hdel(map, key);
}
protected <T> void hsetLocal(final String map, final String key, final Type type, final T value) {
localSource.hset(map, key, type, value);
}
protected <T> T hgetLocal(final String map, final String key, final Type type) {
return localSource.hget(map, key, type);
}
}

File diff suppressed because it is too large Load Diff