NutzCN Logo
问答 集成Ehcache用来缓存表以后,怎么设置缓存刷新时间
发布于 2564天前 作者 老司机 3026 次浏览 复制 上一个帖子 下一个帖子
标签:

集成Ehcache用来缓存表以后,怎么设置缓存刷新时间

7 回复

刷新? 是失效时间吧?

@wendal 对的对的,怎么设置啊

ehcache.xml里面每个cache都有 timeToLiveSeconds 和 timeToIdleSeconds 可以设置

@wendal 如果我用memoryDaoCacheProvider呢?

memoryDaoCacheProvider 只有大小设置,没有过期设置

@wendal 当用MemoryDaoCacheProvider的时候,对表的增删改后,缓存会清除吗?

因为provider也在ioc内,所以通过ioc就能拿到MemoryDaoCacheProvider实例了嘛

添加回复
请先登陆
回到顶部