Commit 9531146f by 陈文顺

cache del

parent 8b5165ad
...@@ -46,6 +46,13 @@ public abstract class RedisCache<T> { ...@@ -46,6 +46,13 @@ public abstract class RedisCache<T> {
redisUitl.setEx( getRedisKey(value.getClass().getName(), key),value, getExprie(), TimeUnit.SECONDS); redisUitl.setEx( getRedisKey(value.getClass().getName(), key),value, getExprie(), TimeUnit.SECONDS);
} }
/**
* 删除缓存
*/
public void delCache(Object key){
redisUitl.getRedisTemplate().delete(key);
}
public abstract T searchDB(Object key); public abstract T searchDB(Object key);
......
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