mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
redisUtils
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除单个对象
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user