Code Monkey home page Code Monkey logo

Comments (3)

jodydonetti avatar jodydonetti commented on June 10, 2024

Hi @giulianob , I'm not sure I understand the scenario you have in mind.

May I ask you to try to explain it a little bit more? Maybe with a concrete example, a step-by-step list like:

  • I do this
  • and this happens
  • then this happens
  • etc

Thanks!

from fusioncache.

giulianob avatar giulianob commented on June 10, 2024

@jodydonetti

The use case is as following:

  • There is a custom backplane implementation
  • When an item changes, the backplane pushes a message to all of the connected clients
  • When a client receives backplane message, the item should be expired from the cache (not removed)
  • If the connection between the client and backplane is disconnected, all items in the cache should be marked as expired (because the client may have missed item change messages)

from fusioncache.

jodydonetti avatar jodydonetti commented on June 10, 2024

Hi @giulianob , sorry for the delay but somehow I lost track of this issue.

Anyway, currently there's no ready made solution to cover this particular scenario, and in general it's not possible to completely clear a cache, for various reasons.

If you want to learn more about why this is the case and what other people do think, I suggest to take a look at the issue currently unfolding about the new distributed cache effort going on for .net 9 , it's ful of interesting experiences and ideas.

I'm closing this since, in general, a Clear() method cannot be supported, but if something new comes up I'll gladly reopen it.

from fusioncache.

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.