Commit 477ac5bc by 陈文顺

[bug] exists key

parent c9164ce1
...@@ -65,7 +65,7 @@ public abstract class RedisHashCache<T> { ...@@ -65,7 +65,7 @@ public abstract class RedisHashCache<T> {
return result; return result;
} }
boolean hasKey = redisTemplate.hasKey(key); boolean hasKey = redisTemplate.hasKey(getRedisKey(key));
if (hasKey){ if (hasKey){
return null; return null;
} }
...@@ -96,7 +96,7 @@ public abstract class RedisHashCache<T> { ...@@ -96,7 +96,7 @@ public abstract class RedisHashCache<T> {
} }
public void delHashFile(Object key,Object filed){ public void delHashFile(Object key,Object filed){
redisTemplate.boundHashOps(key).delete(filed); redisTemplate.boundHashOps(getRedisKey(key)).delete(filed);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment