From a727b1b108f9f3ac9967cc8e85dc4fe70c6ec73a Mon Sep 17 00:00:00 2001 From: cmgyqjj Date: Sun, 22 Sep 2024 17:30:31 +0800 Subject: [PATCH] feature_Support_LRU_User_Info_Cache --- .../cim/route/service/impl/UserInfoCacheServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cim-forward-route/src/main/java/com/crossoverjie/cim/route/service/impl/UserInfoCacheServiceImpl.java b/cim-forward-route/src/main/java/com/crossoverjie/cim/route/service/impl/UserInfoCacheServiceImpl.java index c28d49fd..eadbb52f 100644 --- a/cim-forward-route/src/main/java/com/crossoverjie/cim/route/service/impl/UserInfoCacheServiceImpl.java +++ b/cim-forward-route/src/main/java/com/crossoverjie/cim/route/service/impl/UserInfoCacheServiceImpl.java @@ -36,12 +36,12 @@ public class UserInfoCacheServiceImpl implements UserInfoCacheService { private RedisTemplate redisTemplate ; @Resource(name = "userInfoCache") - private LoadingCache USER_INFO_MAP; + private LoadingCache userInfoMap; @Override public Optional loadUserInfoByUserId(Long userId) { //Retrieve user information using a second-level cache. - CIMUserInfo cimUserInfo = USER_INFO_MAP.getUnchecked(userId); + CIMUserInfo cimUserInfo = userInfoMap.getUnchecked(userId); return Optional.ofNullable(cimUserInfo); }