
ehcache
文章平均质量分 79
wangjun5159
2011年-至今一直从事java web开发,全栈开发,包括但不限于java技术栈、vue技术栈、微信小程序,uniapp,抓包wireshark/fiddler、nginx/keepalived,了解原生安卓,知道electron,关注flutter,欢迎技术咨询
展开
-
ehcache中详解参数
为了搞清楚timeToLiveSeconds和timeToIdleSeconds这两个参数的作用有必要shiro-ehcache.jar中ehcache.xml的解释<!--Default Cache configuration. These will applied to caches programmatically created through the CacheMana...原创 2020-03-25 19:22:26 · 475 阅读 · 0 评论 -
shiro session设置了过期时间不起作用、无效;
背景知识shiro的sesssion由sessionmanager管理,所以这里有必要介绍一下sessionmanager,shiro常用的sessionmanager有ServletContainerSessionManager、DefaultWebSessionManager。servlet容器管理session设置为ServletContainerSessionManager时,...原创 2019-05-07 19:59:53 · 15175 阅读 · 13 评论 -
关于shiro中session过期时间;Ehcache缓存中timeToLiveSeconds和timeToIdleSeconds过期问题
ehcache的timeToLiveSeconds和timeToIdleSeconds,这两个参数很有迷惑性,如果两个同时设置哪个起作用?网上搜了很多,说什么的都有,为了一探究竟,决定看源码org.apache.shiro:shiro-ehcache1.3.2net.sf.ehcache.Element/** * Returns the expiration time ba...原创 2019-08-21 10:24:36 · 3658 阅读 · 6 评论