I am using Guava cache manager and setting expireAfterAccess
value.
I want to know which method is invoked to expire entries from the cache?
Asked
Active
Viewed 246 times
-2

dur
- 15,689
- 25
- 79
- 125

saurabh wani
- 1
- 1
-
1It manages the expiration by itself, that's the point. – Frank Pavageau Nov 04 '16 at 10:24
-
I want to override that method and add one more condition before expiring the cache contents. So, which method exactly check current time and expireAfterAccess parameter? – saurabh wani Nov 09 '16 at 11:39
1 Answers
0
You can't override the implementation of the Guava cache, if it doesn't have an extension point accessible through the CacheBuilder
: all you get is an interface (either Cache
or LoadingCache
), the implementing classes are private.

Frank Pavageau
- 11,477
- 1
- 43
- 53