SaintModeCache is a thread safe in-memory cache wrapper for performance optimisation. It's able to continue serving stale content after expiry, whilst it repopulates the cache with a non-blocking single thread.
This demo leverages SaintModeCache server-side caching of various RSS feeds. The feeds are updated on a background-thread by the library so as not to affect the site performance. Only one thread will request updated data when it expires from the cache.