Git Product home page Git Product logo

Comments (7)

ptarjan avatar ptarjan commented on September 6, 2024

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.

manojktechie avatar manojktechie commented on September 6, 2024

No, my node server didn't restarted. I am using IISNode to host my nodejs website on windows 8 server.

from node-cache.

ptarjan avatar ptarjan commented on September 6, 2024

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.

manojktechie avatar manojktechie commented on September 6, 2024

Could you please suggest me some good one for this purpose ?

from node-cache.

ptarjan avatar ptarjan commented on September 6, 2024

mysql

from node-cache.

manojktechie avatar manojktechie commented on September 6, 2024

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.

ptarjan avatar ptarjan commented on September 6, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.