alexxiyang / shiro-redis

shiro only provide the support of ehcache and concurrentHashMap. Here is an implement of redis cache can be used by shiro. Hope it will help you!
MIT License
1.17k stars 446 forks source link

redis缓存的key名称能否优化 #121

Open lnfht opened 4 years ago

lnfht commented 4 years ago

redis缓存的key为shiro:cache:com.grq.cloud.shiro.GrqRealm.authorizationCache:2,能否设置成shiro:cache:2这种格式?另外如何解决手机端和web端各只允许一人登录

rick-2023 commented 3 years ago

可以设置不同的header,同时利用dqueue保证一种header各自允许一个人登录

TsukasaHwan commented 2 years ago

authRealm.setAuthenticationCacheName();