获取数据库数据抽象方法

master
DongZeLiang 2024-04-01 11:05:14 +08:00
parent 4933648a82
commit b29e58bc62
1 changed files with 3 additions and 1 deletions

View File

@ -47,6 +47,7 @@ public abstract class HashCacheAbs<K, HK, HV> implements HashCache<K, HK, HV> {
@Override
public Map<HK, HV> get (K key) {
// 获取为null的情况
return decodeMap(redisService.getCacheMap(encode(key)));
}
@ -188,5 +189,6 @@ public abstract class HashCacheAbs<K, HK, HV> implements HashCache<K, HK, HV> {
/**
*
*/
public abstract HV defaultValue();
public abstract Map<HK, HV> defaultValue();
public abstract HV defaultHashValue();
}