diff --git a/kernel-d-auth/auth-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/auth/starter/GunsAuthAutoConfiguration.java b/kernel-d-auth/auth-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/auth/starter/GunsAuthAutoConfiguration.java index 7edaac146..c4317fd4a 100644 --- a/kernel-d-auth/auth-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/auth/starter/GunsAuthAutoConfiguration.java +++ b/kernel-d-auth/auth-spring-boot-starter/src/main/java/cn/stylefeng/roses/kernel/auth/starter/GunsAuthAutoConfiguration.java @@ -127,7 +127,7 @@ public class GunsAuthAutoConfiguration { */ @Bean @ConditionalOnMissingBean(name = "loginUserCache") - public MemoryLoginUserCache loginUserCache() { + public CacheOperatorApi loginUserCache() { Long sessionExpiredSeconds = AuthConfigExpander.getSessionExpiredSeconds(); TimedCache loginUsers = CacheUtil.newTimedCache(1000L * sessionExpiredSeconds); return new MemoryLoginUserCache(loginUsers); @@ -143,7 +143,7 @@ public class GunsAuthAutoConfiguration { */ @Bean @ConditionalOnMissingBean(name = "allPlaceLoginTokenCache") - public MemoryLoginTokenCache allPlaceLoginTokenCache() { + public CacheOperatorApi> allPlaceLoginTokenCache() { TimedCache> loginTokens = CacheUtil.newTimedCache(CacheConstants.NONE_EXPIRED_TIME); return new MemoryLoginTokenCache(loginTokens); }