Commit 063f722d by 陈文顺

springCloud fengin

parent c09af56b
......@@ -47,7 +47,7 @@ public abstract class RedisCache<T> {
redisTemplate.opsForValue().set(redisKey, "",5, TimeUnit.MINUTES);
}else {
redisTemplate.opsForValue().set( redisKey,value, getExprie(), TimeUnit.HOURS);
redisTemplate.opsForValue().set( redisKey,value, getExpire(), TimeUnit.HOURS);
}
......@@ -60,7 +60,7 @@ public abstract class RedisCache<T> {
* @param value
*/
public void setCache(Object key, T value){
redisTemplate.opsForValue().set( getRedisKey( key),value, getExprie(), TimeUnit.SECONDS);
redisTemplate.opsForValue().set( getRedisKey( key),value, getExpire(), TimeUnit.SECONDS);
}
/**
......@@ -73,7 +73,7 @@ public abstract class RedisCache<T> {
public abstract T searchDB(Object key);
public abstract int getExprie();
public abstract int getExpire();
private String getRedisKey( 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