【发布时间】:2015-04-01 02:28:05
【问题描述】:
我在使用Spring (v4.1.4) 的Java Web 项目中使用Shiro(v1.2.3)。
我为 shiro 启用了Ehcache,以帮助存储 shiro 会话。
我的问题是:
我是否需要在 ehcache.xml 配置文件中为 shiro 会话定义一个 <cache> 实体,或者 shiro 会自动管理它?
一句话,我是否需要将以下配置段放入ehcache-shiro.xml:
<cache name="shiro-activeSessionCache" maxElementsInMemory="10000" overflowToDisk="true" eternal="true"
timeToLiveSeconds="0" timeToIdleSeconds="0" diskPersistent="true" diskExpiryThreadIntervalSeconds="600" />
【问题讨论】: