@IocBean(name="shiroCacheManager")
public CacheManager getCacheManager() {
switch (conf.get(PROP_SESSION_CACHE_TYPE, "memory")) {
case "ehcache":
return ioc.get(CacheManager.class, "shiroEhcacheCacheManager");
case "redis":
//return ioc.get(CacheManager.class, "shiroRedisCacheManager");
case "lcache":
return ioc.get(CacheManager.class, "shiroLcacheCacheManager");
case "memory":
return new MemoryConstrainedCacheManager();
default:
throw new ShiroException("unkown shiro.session.cache.type=" + conf.get("shiro.session.cache.type"));
}
}
NB源码中发现是注释了,这个还没有实现吗?还是有问题呢?