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 444 forks source link

JedisPool优化问题 #128

Closed xiyoumaila closed 4 years ago

xiyoumaila commented 4 years ago

JedisPool是一个成员变量,可否优化成静态变量,单例模式下只初始化一次

alexxiyang commented 4 years ago

jedisPool 已经是单例模式了,并且使用了双重检查,只会初始化一次。