redisUtils

This commit is contained in:
2023-08-26 10:28:53 +08:00
parent 4997669ca7
commit a4df389c7d

View File

@@ -165,6 +165,17 @@ public class RedisCache {
return operation.get(key);
}
public Long getCacheLong(final String key) {
Long l = null;
Object cacheObject = getCacheObject(key);
if (cacheObject instanceof Integer) {
l = ((Integer) cacheObject).longValue();
} else if (cacheObject instanceof Long) {
l = (Long) cacheObject;
}
return l;
}
/**
* 删除单个对象
*