Commit 3d0504bf authored by 刘基明's avatar 刘基明

用户简介

parent 81608051
...@@ -2,10 +2,8 @@ package com.tanpu.community.cache; ...@@ -2,10 +2,8 @@ package com.tanpu.community.cache;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.tanpu.common.redis.RedisHelper; import com.tanpu.common.redis.RedisHelper;
import com.tanpu.common.redis.RedisKeyHelper;
import com.tanpu.community.util.SpringUtils; import com.tanpu.community.util.SpringUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;
import java.time.Duration; import java.time.Duration;
import java.util.List; import java.util.List;
...@@ -62,6 +60,7 @@ public class RedisCache { ...@@ -62,6 +60,7 @@ public class RedisCache {
public Builder cacheName(String cacheName) { public Builder cacheName(String cacheName) {
cache.cacheName = cacheName; cache.cacheName = cacheName;
cache.redisHelper = SpringUtils.getBean(RedisHelper.class); cache.redisHelper = SpringUtils.getBean(RedisHelper.class);
return this;
} }
public RedisCache build() { public RedisCache build() {
......
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