Giter VIP home page Giter VIP logo

Comments (3)

huacnlee avatar huacnlee commented on June 2, 2024

Actually, you may not need to care about this.

The cache is a cache, the cache of the RailsSetitngs like any other caches, we don't need to it for special. There is no reason need to do special.

So why do you want storage RailsSettings's cache in a special place? Why not keep them in your Memcached (default Rails cache)?

from rails-settings-cached.

huacnlee avatar huacnlee commented on June 2, 2024

There are some cases when one doesn't want to use Rails.cache to store settings cache, i.e. consider multiple rails nodes each using its own memcached server (so each node has Rails.cache pointed to its own memcached node) -- for simplicity and consistency we'd like to use single shared redis server instance for settings caching.

By you mentioned, why not let the Rails.cache to a default storage.
Are you still in using the Rails.cache? What this Rails.cache to do, why can not use Rails.cache to storage the RailsSettings's caches?

And how large of your storage items in RailsSettings, is the reason is too big cannot storage that Rails.cache?

from rails-settings-cached.

viralpraxis avatar viralpraxis commented on June 2, 2024

Let me clarify the issue.

That's a common practice to have a distributed Rails application (i.e. with multiple RoR nodes running the same application) with separated caches (i.e. Rails.cache). For example. you might want to use separate Memcached server for each of these nodes.

In this situation, to ensure some sort of consistency of RailsSetting settings cache among all the nodes you have to use single cache storage (for instance, Redis) that will act as a cache for the nodes. To do so you have to able to configure the gem with that cache storage.

from rails-settings-cached.

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.