Java-Shiro (seven): Shiro Redis integration to achieve unified management Session

Alternatively Shiro default SessionManager Redis used in practical applications are necessary because the default SessionManager internal memory defaults stored Session information; when the internal configuration CacheManager (default configuration using EhCache-- memory or disk cache), will the user who has logged Session information is stored in memory or on disk. Whether it is pure memory way or EhCache (memory or disk) methods are not suitable for production use (especially more concurrent user authentication system).

 

Guess you like

Origin www.cnblogs.com/yy3b2007com/p/12110973.html