我将 ehcache 与 hibernate 一起使用,我想使用阻塞或 SelfPopulating 缓存来避免出现的问题http://ehcache.org/documentation/constructs-0_5.html#mozTocId722946
需要一个昂贵的操作,比如渲染一个大的网页,这需要 30 秒。该页面在 5 分钟之前不会被认为是陈旧的。该页面受到的打击非常大,平均每 5 分钟会被打击 20 次。
我是否必须以编程方式执行此操作http://ehcache.org/documentation/cache_decorators.html建议或者是否有一种声明性(在 xml 中)的方式来做到这一点?
多谢