Comments (3)
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.
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.
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)
- Usage in i18n config files HOT 1
- Readme Typo
- ๐จ in "_table_exists?" the error rescuing is too generic.
- ๐จ fix for "_table_exists?" method HOT 4
- Support for metadata for fields HOT 1
- Default Proc setting does not work if it is readonly
- getting an undefined method for a setting HOT 6
- Unable to use AR scope functionality HOT 3
- Consider document ActiveRecord::Store as another alternative to Scoped Settings
- Disable RequestCache without Rails application HOT 2
- Caching is buggy in Rails 5 HOT 3
- ไป่ฎพ็ฝฎๅๅพๅผๅๆฟๅฐ็ไธไธ่ด HOT 2
- Configurable Cache Expiration HOT 1
- Rails 6.1.6.1 no longer loading Settings in /config/environments/*.rb HOT 1
- Field of Type Hash
- Updating a value doesn't invalidate cache in distributed system HOT 3
- Version 2.9.0 breaks `type: :date_time` HOT 3
- Change in behavior for integer HOT 1
- ActiveAdmin interface for v2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails-settings-cached.