在Shiro中为会话启用Ehcache是非常容易的。首先,确保在你的classpath中有shiro-ehcache-.jar文件。然后,在shiro.ini中配置EHCache为所有Shiro的缓存提供使用:[main]sessionDAO=org.apache.shiro.session.mgt.eis.EnterpriseCacheSess
自己做了一个quartz ,每隔 30s 主动调用一下检查。 /** * 检查 缓存中过期元素 * @author chenhua * create on 2012-9-11 上午10:11:56 */ public void cacheelementexpiredcheck(){ ehcache alarmcache=((ehcache)springcontexthelper.getbean.
用户登录
还没有账号?立即注册
用户注册
投稿取消
文章分类: |
|
还能输入300字
上传中....