我正在我的项目中实现redis-shirosession管理功能,目前我对Shiro和Redis的了解非常少。我想知道调用下面是否会每次都访问redis数据库来检查redis数据库中是否存在任何sessionId。服务代码SubjectcurrentUser=SecurityUtils.getSubject();Sessionsession=currentUser.getSession();Controller中的代码:publicStringgetSomrthing(@CookieValue("JSESSIONID")StringfooCookie){callingSomeServi
我正在我的项目中实现redis-shirosession管理功能,目前我对Shiro和Redis的了解非常少。我想知道调用下面是否会每次都访问redis数据库来检查redis数据库中是否存在任何sessionId。服务代码SubjectcurrentUser=SecurityUtils.getSubject();Sessionsession=currentUser.getSession();Controller中的代码:publicStringgetSomrthing(@CookieValue("JSESSIONID")StringfooCookie){callingSomeServi