File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,6 +141,28 @@ in admin panel but also with keeping in mind about next enhancements.
141141
142142[ Read there] ( https://github.com/alterego-labs/settingify/wiki/Localization-feature )
143143
144+ ## Caching feature (since v0.2.0)
145+
146+ ### Configuration
147+
148+ ``` ruby
149+ Settingify .config do |config |
150+ config.setup_cache provider: Rails .cache
151+ end
152+ ```
153+
154+ You can use some custom providers. The provider should to have the following interface:
155+
156+ - ` #fetch(key, &block) `
157+ - ` #delete_matched(pattern) `
158+
159+
160+ ### Usage in the wild
161+
162+ After you've set up caching in the initializer you do not need something another to get caching worked.
163+ The only thing you may need - in the host application after some setting has been changed you need
164+ to call cache clearnup. For that there is an built-in API: ` Settingify.clear_cache ` .
165+
144166## Testing
145167
146168Because localization feature affects on Setting class by unchangable
Original file line number Diff line number Diff line change 11module Settingify
2- VERSION = "0.1.1 "
2+ VERSION = "0.2.0 "
33end
You can’t perform that action at this time.
0 commit comments