reliable-caching
v0.1.5
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 stampeed (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 implemententations below handle things like, immutability of cache objects (important for not alter cache content), handle deserialization errors (handled as a miss), 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
Using npm:
npm i --save reliable-caching
Articles
- Drop hit ratio as cache measure, now!
- Resource optimization in Node.js
- Resource optimization in Node.js
