fastify/fastify-caching

Caching object

jsumners opened this issue · 1 comments

@fastify please look at commit 7b72da2 and give me your feedback. It adds a decorator that provides an object to facilitate server-local caching of items. Basically, anything that conforms to the Catbox v7 API can be supplied as a cache object. The default is a very simple memory cache.

Commit 843adcf updates the default cache object to an LRU cache and clarifies the intention of the default cache in the readme.