use of org.nutz.plugins.cache.impl.redis.RedisCacheManager in project nutzboot by nutzam.
the class ShiroEnvStarter method getRedisLcacheCacheManager.
@IocBean(name = "shiroRedisCacheManager")
public CacheManager getRedisLcacheCacheManager() {
conf.putIfAbsent(PROP_SESSION_CACHE_REDIS_MODE, "kv");
conf.putIfAbsent(PROP_SESSION_CACHE_REDIS_DEBUG, "false");
conf.putIfAbsent(PROP_SESSION_CACHE_REDIS_TTL, "-1");
RedisCacheManager cacheManager = conf.make(RedisCacheManager.class, "shiro.session.cache.redis.");
return cacheManager;
}
Aggregations