JFinal オンラインマニュアル
/ ehcache.xml 簡(jiǎn)介
ehcache.xml 簡(jiǎn)介
EhCache 的使用需要有 ehcache.xml 配置文件支持,該配置文件中配置了很多 cache 節(jié)點(diǎn), 每個(gè) cache 節(jié)點(diǎn)會(huì)配置一個(gè) name 屬性,例如:<cache name="blog" …>,該屬性是 CacheKit 取值所必須的。其它配置項(xiàng)如 eternal、 overflowToDisk、timeToIdleSeconds、 timeToLiveSeconds 詳見 EhCache 官方文檔。