Authored by unknown

update

... ... @@ -3,19 +3,15 @@
*/
package com.yoho.unions.common.redis;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Resource;
import com.yoho.core.redis.cluster.annotation.Redis;
import com.yoho.core.redis.cluster.operations.nosync.YHRedisTemplate;
import com.yoho.core.redis.cluster.operations.serializer.RedisKeyBuilder;
import org.apache.commons.collections.MapUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.util.concurrent.TimeUnit;
/**
* @author ping.huang
... ... @@ -47,7 +43,8 @@ public class RedisTemplate {
* @return
*/
public void delete(String key) {
yHRedisTemplate.delete(key);
RedisKeyBuilder redisKeyBuilder = RedisKeyBuilder.newInstance().appendFixed(key);
yHRedisTemplate.delete(redisKeyBuilder);
}
... ...