Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee authored Oct 16, 2023
1 parent ed2ab02 commit d4d86af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ You can use `cache_store` to change cache storage, default is `Rails.cache`.
Add `config/initializers/rails_settings.rb`

```rb
RailsSettings.configure do |config|
config.cache_store = :redis_store, "redis://localhost:6379/0/cache", { expires_in: 1.hour }
RailsSettings.configure do
self.cache_storage = ActiveSupport::Cache::RedisCacheStore.new(url: "redis://localhost:6379")
end
```

Expand Down

0 comments on commit d4d86af

Please sign in to comment.