ehcache的文档中写道:
timeToIdleSeconds: Sets the time to idle for an element before it expires.
i.e. The maximum amount of time between accesses before an element expires
timeToLiveSeconds: Sets the time to live for an element before it expires.
i.e. The maximum time between creation time and when an element expires.
我理解timeToIdleSeconds
但是这是否意味着在创建并第一次访问缓存项之后,timeToLiveSeconds不再适用?
min((max(lastAccessTime, creationTime) + TTI), (creationTime + TTL))
之后,条目被认为是已过期的。 - Timur Milovanov