Giter Club home page Giter Club logo

Comments (7)

jakemumu avatar jakemumu commented on September 26, 2024 1

Amazing library by the way! So helpful over caching entire queries.

from graphql-ruby-fragment_cache.

DmitryTsepelev avatar DmitryTsepelev commented on September 26, 2024

Hey @jakemumu! It depends on the storage you use: for instance in Redis you can remove all keys starting with graphql/

from graphql-ruby-fragment_cache.

jakemumu avatar jakemumu commented on September 26, 2024

For sure -- I noticed however when using no memory store in local development, it defaults to its internal memory mechanism. I haven't seen a way to disable or clear this one when working locally? Apologies if it's there.

from graphql-ruby-fragment_cache.

DmitryTsepelev avatar DmitryTsepelev commented on September 26, 2024

You can clear a memory one as well (.clear, here) but I'm not sure if it's possible to connect to the running process from the console. Memory story is just a hash in the memory of a running process 🙂

from graphql-ruby-fragment_cache.

DmitryTsepelev avatar DmitryTsepelev commented on September 26, 2024

BTW, what problem are you solving? Maybe we can try an alternative solution

from graphql-ruby-fragment_cache.

jakemumu avatar jakemumu commented on September 26, 2024

I think I've made an idiotic mistake 0.o -- I have some bulk edits I've been making and checking on the API while working locally, I noticed I wasn't able to clear the cache, but I've just realized... simply restarting the rails server will dump the in memory cache! derp! -- totally can close this, idk how I didn't think of that

from graphql-ruby-fragment_cache.

DmitryTsepelev avatar DmitryTsepelev commented on September 26, 2024

Indeed, restart will definitely drop the cache 😅But in production we should make sure to prefer something that persists, otherwise we'll have weird performance while cache is warming. Please ping me if you need anything else!

from graphql-ruby-fragment_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.