CacheEntry
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.redkale.caching;
|
package org.redkale.caching;
|
||||||
|
|
||||||
|
import java.lang.reflect.Type;
|
||||||
import org.redkale.source.CacheMemorySource;
|
import org.redkale.source.CacheMemorySource;
|
||||||
import org.redkale.source.CacheSource;
|
import org.redkale.source.CacheSource;
|
||||||
|
|
||||||
@@ -24,4 +25,16 @@ public class CacheFactory {
|
|||||||
public static CacheFactory create(CacheSource remoteSource) {
|
public static CacheFactory create(CacheSource remoteSource) {
|
||||||
return new CacheFactory(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
Reference in New Issue
Block a user