Updating java cache
To execute each query and to fetch results over the network takes 100 milliseconds on average.
Data that does not satisfy the requirement of temporal and spatial locality of access leads to faster eviction of cache elements and as a result will lower the number of cache hits and increase cache maintenance.
When a cache element is updated, it is removed from the list and added to the top of the list.
The new elements are added to the top of the list as well.
Least Recently Used (LRU) is one of the most popular among a number of eviction policies.
LRU earned its popularity for being the best in capturing temporal and spatial locality of data access.