There is a task, to get an element from the cache if there is no access to the database. If the token has expired. How can I get an expired cache element? Is there any cache for Spring which can do it?
Asked
Active
Viewed 513 times
0
-
1Perhaps consider using a [RemovalListener](https://github.com/ben-manes/caffeine/wiki/Removal)? – Ben Manes Oct 27 '18 at 00:19
-
if we will use RemovalListener, we need to store removal elements before use their – Kirill Shiryaev Oct 29 '18 at 12:26