Giter Site home page Giter Site logo

Improve caching about noodle HOT 2 CLOSED

AaronAcerboni avatar AaronAcerboni commented on July 19, 2024
Improve caching

from noodle.

Comments (2)

premasagar avatar premasagar commented on July 19, 2024

It's worth taking a look at https://github.com/dharmafly/elsewhere to see how caching is done there these days.

from noodle.

AaronAcerboni avatar AaronAcerboni commented on July 19, 2024
  • Truncate cache, according to a limit. Keep a total amount of cached items at one time 👌
    Cache size is kept to a specified limit ('lib/config.js') and oldest cached items are cleared to make way for newer entries.
  • Cache time for considering certain items to be in need of an update. eg 1 hour 👌
    Cached items stay for a specified time limit ('lib/config.js') and then are cleared.
  • If request fails, serve cached data 👌
    Cached items are prioritized to the client before any requests to other sites have to be made. In addition failed requests do not get cached.
  • Purge time, eg 1 week 👌
    All cached items are now cleared on a weekly basis by default. This option can be changed or turned off ('lib/config.js').

from noodle.

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.