node-cache icon indicating copy to clipboard operation
node-cache copied to clipboard

A simple in-memory cache for nodejs

Results 32 node-cache issues
Sort by recently updated
recently updated
newest added

In a nextjs app (classic /pages setup, I'm not using the new /app directory), I want to set an item in the cache in middleware, which can then be read...

Hi, I have a route that will send back one of two objects given what's sent in req.body.variable That caching technique has been great for that same route when only...

https://github.com/ptarjan/node-cache/blob/27a1eeec18660b45d39cc5daf44d9647e696e48b/index.js#L53 When a record is about to expire, we take the initiative to delete it. And due to the running time of the program, `oldRecord.expire < Date.now() === true`, so...

Hi, I have implemanted this module as discribed here [https://medium.com/the-node-js-collection/simple-server-side-cache-for-express-js-with-node-js-45ff296ca0f0](url) but pages are not cached ... i have added logs and in which i can see .get(key) does not return...

I was wondering if putting authorization tokens from a web api to a memory cache is better for preventing xss attacks than using localstorage or sessionstorage (or if its the...

I had an use case where I wanted to store array as a value and later push/pop some items. I think it would make sense to add methods like `push`,...

how do i get cache and update time expired? Thank you!

Hello, I tried to use this library to optimize a website speed, that worked great but sometimes a crash occurs. If you can help, that would be nice. Log: ```...

'deleteOnTimeout' controls whether a key is removed when the ttl expires or whether it is kept. Default is true (behavior is unchanged). If set to false, key will not be...

I have an api gateway running in cluster mode (4), using this lib to cache requests, is there any way to share an instance of lib between the 4 processes?...