...
|
...
|
@@ -3,6 +3,9 @@ package com.yoho.unions.common.redis; |
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.data.redis.connection.RedisConnection;
|
|
|
import org.springframework.data.redis.core.RedisCallback;
|
|
|
import org.springframework.data.redis.core.RedisTemplate;
|
|
|
import org.springframework.data.redis.core.TimeoutUtils;
|
|
|
|
|
|
import java.io.UnsupportedEncodingException;
|
|
|
import java.util.concurrent.TimeUnit;
|
...
|
...
|
@@ -12,7 +15,7 @@ import java.util.concurrent.TimeUnit; |
|
|
* 重写RedisTemplate,支持读写分离,支持long expire
|
|
|
*
|
|
|
*/
|
|
|
public class YHRedisTemplate<K,V> extends RedisTemplate<K, V> {
|
|
|
public class YHRedisTemplate<K,V> extends RedisTemplate<K, V> {
|
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(this.getClass());
|
|
|
|
...
|
...
|
|