getIfPresent 是否被视为 expireAfterAccess 的获取操作?
Is getIfPresent considered as a get operation for expireAfterAccess?
getIfPresent
函数是否重置 expireAfterAccess
的时间?
CacheBuilder.expireAfterAccess()
文档说:
Access time is reset by all cache read and write operations
由于Cache.getIfPresent()
是缓存读取,它会重置访问时间。
getIfPresent
函数是否重置 expireAfterAccess
的时间?
CacheBuilder.expireAfterAccess()
文档说:
Access time is reset by all cache read and write operations
由于Cache.getIfPresent()
是缓存读取,它会重置访问时间。