Skip to content

Commit ed2ab02

Browse files
committed
Update README
1 parent 4960cfc commit ed2ab02

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,18 @@ app/views/admin/settings/show.html.erb
465465
<% end %>
466466
```
467467

468+
## Special Cache Storage
469+
470+
You can use `cache_store` to change cache storage, default is `Rails.cache`.
471+
472+
Add `config/initializers/rails_settings.rb`
473+
474+
```rb
475+
RailsSettings.configure do |config|
476+
config.cache_store = :redis_store, "redis://localhost:6379/0/cache", { expires_in: 1.hour }
477+
end
478+
```
479+
468480
## Scoped Settings
469481

470482
> 🚨 BREAK CHANGES WARNING:

0 commit comments

Comments
 (0)