Code Monkey home page Code Monkey logo

Comments (2)

tedivm avatar tedivm commented on August 16, 2024

The static properties don't really do a lot.

Three of them are for statistics and record keeping- basically a way to see how many calls have been made, how many have returned as hits/misses, and how many times each item is specifically pulled. They are not used by Stash itself, but provide a way for outside libraries to find out some performance data.

Another static property is the "runtime disable" one. This allows Stash to be universally disabled, generally for when certain massive errors occur. This is sort of depreciated- the plan is to move it out of the Item object and over to the Pool one, allowing developers to disable things on a Pool specific level, not across every Stash cache.

The final one, the one you mentioned, is for a default ttl. It is used when there are no ttl's provided by the user, to act as a default for the caching systems that require it. You can easily supply your own for each object, and there are lots of different ways to handle cache invalidation.

Let me know if that helps, or if there are other questions spawned off of that explanation.

from stash.

dlsniper avatar dlsniper commented on August 16, 2024

Thanks!

from stash.

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.