mediocre / petty-cache

A cache module for Node.js that uses a two-level cache (in-memory cache for recently accessed data plus Redis for distributed caching) with some extra features to avoid cache stampedes and thundering herds. Also includes mutex and semaphore distributed locking primitives.
https://www.npmjs.org/package/petty-cache
Apache License 2.0
23 stars 6 forks source link

Added the ability for `pettyCache.fetch` to support async functions #38

Closed freshlogic closed 3 months ago

coveralls commented 3 months ago

Coverage Status

coverage: 89.346% (-0.006%) from 89.352% when pulling a703c2fd0cfd9b8b2a9e02b3eab899ba3bf6b3e1 on fetch-async-func into 49d320c5912f80a5e022f406126f776806f6a88e on main.