reliable-caching
v0.1.6
Published
This package is the code support for book "Node Reliable Caching"
Maintainers
Readme
Reliable-caching package
This package provides functionality for cache key generation, URL signing for cache poisoning prevention, cache signing, singleflight pattern to prevent resource stampede (single instance and distributed) and also cache benchmarking (single instance and distributed).
These ideas are being compiled into a book focused mainly on reliable caching for node.
Documentation
Installation
Using npm:
npm i --save reliable-caching
Storage Implementations
All implementations below handle things like immutability of cache objects (important to not alter cache content), handle deserialization errors (handled as a miss), and signature failures (handled as a miss), making code more robust than those quickly made hacks developers do.
- In Memory LRU provides object immutability, no cache signature
- Redis provides object immutability, cache signature
- Memcache provides object immutability, cache signature
