Authored by DengXinFei

redis配置

... ... @@ -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;
... ...
... ... @@ -55,7 +55,14 @@
<groupId>com.netflix.archaius</groupId>
<artifactId>archaius-zookeeper</artifactId>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
... ...
... ... @@ -8,6 +8,8 @@ import java.util.concurrent.TimeUnit;
import javax.annotation.Resource;
import com.yoho.unions.common.redis.YHRedisTemplate;
import com.yoho.unions.common.redis.YHValueOperations;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... ... @@ -16,8 +18,6 @@ import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.yoho.activity.service.DrawService;
import com.yoho.core.redis.YHRedisTemplate;
import com.yoho.core.redis.YHValueOperations;
import com.yoho.error.ServiceError;
import com.yoho.error.exception.ServiceException;
import com.yoho.service.model.union.request.DrawRequestBO;
... ...