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

make redis optional #13

Closed shusson closed 4 years ago

shusson commented 5 years ago

Is there appetite to making redis optional? I'm looking for an in memory cache for nodejs that supports locking to prevent cache stampedes. But we can't run redis in our production environment.

freshlogic commented 4 years ago

I don't think so. You could maybe fork this and remove the Redis bits.