最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Guava Cache Entry Expiration - Stack Overflow

programmeradmin6浏览0评论

I have created a guava Cache indicating that entries should expire a fixed time after last access (using the expireAfterAccess() method of CacheBuilder).

I understand that calls to get() and put() on the Cache will result in resetting the access time of the affected entry. What is unclear to me, however, is whether iterating over all of the values in the Cache using cache.asMap().values() will result in resetting the access time on all of the entries in the cache (I am really hoping that the answer is no).

发布评论

评论列表(0)

  1. 暂无评论