;-------------Redis作为shiro二级缓存时启用这里---------
jedisAgent = org.nutz.integration.jedis.JedisAgent
cacheManager_ehcache = org.apache.shiro.cache.ehcache.EhCacheManager
cacheManager_ehcache.cacheManagerConfigFile=classpath:ehcache.xml
cacheManager_redis = org.nutz.plugins.cache.impl.redis.RedisCacheManager
cacheManager_redis.mode=kv
cacheManager_redis.debug=true
cacheManager = org.nutz.plugins.cache.impl.lcache.LCacheManager
cacheManager.jedisAgent = $jedisAgent
cacheManager.level1 = $cacheManager_ehcache
cacheManager.level2 = $cacheManager_redis
;-------------Redis作为shiro二级缓存时启用这里---------
redis.host=127.0.0.1
redis.port=7000
redis.timeout=2000
redis.mode=cluster
没开启redis作为二级缓存时候获取session和登录用户
Subject subject = SecurityUtils.getSubject();
subject.getSession().getAttribute("logintype");
Mh_user user = (Mh_user) subject.getPrincipal();
现在开启了 我该怎么在redis库里获取呢?还需要改什么配置嘛?