Comments (7)
Did your node server restart in between? Are you using two different node instances? You have to keep one server up since it is an in-memory cache.
from node-cache.
No, my node server didn't restarted. I am using IISNode to host my nodejs website on windows 8 server.
from node-cache.
I have no idea about IISNode. There is no reason for data to disappear from this cache, but if you deeply need data to be persistent, this is the wrong project for you.
from node-cache.
Could you please suggest me some good one for this purpose ?
from node-cache.
mysql
from node-cache.
I am already using database(mssql) for permanent storage. But I want to keep almost all data from database into in memory cache for further retrieval/processing. I tried LRU-Cache, but I am getting same problem as I am getting for this package. I want to do something like .. HttpRuntime.Cache.Insert(CacheKey, dataList); which I can do in ASP.NET. Hope you understand.
from node-cache.
Your cache will ALWAYS run cold. That is why it is a cache. Your program should tolerate having the cache be 100% cold on every request. It is only there to speed things up.
from node-cache.
Related Issues (20)
- Npm test stuck if cache is used with TTL HOT 1
- Adding support for array values HOT 2
- Singleton on cluster mode HOT 3
- how do i get cache and update time expired? HOT 1
- size and memsize gives always 0 result HOT 1
- cache key length limit HOT 1
- Graphql result sometimes broken
- RangeError: Maximum call stack size exceeded HOT 2
- Cache per req.body variable
- Item written to cache by Nextjs middleware doesn't exist when reading from the cache HOT 2
- If the cache timeout is sufficiently big, it doesn't work. HOT 3
- Does it auto clean HOT 2
- How can I cache a third party json? HOT 1
- README typo
- calling put with TTL value within Promise chain fails HOT 5
- keys() writes checks that get() can't cash
- support more operation maybe better
- Is this a bug about `this.del` function HOT 2
- Data not cached HOT 1
- Is this library a good replacement for localstorage and session storage for security HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-cache.