blogger templates blogger widgets
This is part of a list of blog posts.
To browse the contents go to

Cache Invalidation

A cache can be invalidated using either of the 3 methods:

Simple timeout
On the cache specification for a particular cache entry, you can specify a default timeout value. This could be short term (seconds) or long term (years). It could also specify infinity.

Dynamic invalidation
Based on a logic we invalidate the cache during runtime. This logic could be specified through configuration or accessed through programmatic API.

Cache eviction
Cache entries are invalidated when the cache is full and they are purged to make way for new entries. For a static cache, this is simply which entry is closest to timing out. For a dynamic cache, a Least Recently Used algorithm is executed to determine which entries should be purged, as well as the priority assigned to each cache entry.

No comments:

Post a Comment