Search in sources :

Example 1 with RedisCacheManager

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;
}
Also used : RedisCacheManager(org.nutz.plugins.cache.impl.redis.RedisCacheManager) IocBean(org.nutz.ioc.loader.annotation.IocBean)

Aggregations

IocBean (org.nutz.ioc.loader.annotation.IocBean)1 RedisCacheManager (org.nutz.plugins.cache.impl.redis.RedisCacheManager)1