@@ -524,16 +524,16 @@ A more complex, production Redis cache store may look something like this:
524
524
cache_servers = %w(redis://cache-01:6379/0 redis://cache-02:6379/0)
525
525
config.cache_store = :redis_cache_store , { url: cache_servers,
526
526
527
- connect_timeout: 30 , # Defaults to 20 seconds
528
- read_timeout: 0.2 , # Defaults to 1 second
529
- write_timeout: 0.2 , # Defaults to 1 second
530
- reconnect_attempts: 1 , # Defaults to 0
531
-
532
- error_handler: -> (method: , returning: , exception: ) {
533
- # Report errors to Sentry as warnings
534
- Raven .capture_exception exception, level: ' warning' ,
535
- tags: { method: method, returning: returning }
536
- }
527
+ connect_timeout: 30 , # Defaults to 20 seconds
528
+ read_timeout: 0.2 , # Defaults to 1 second
529
+ write_timeout: 0.2 , # Defaults to 1 second
530
+ reconnect_attempts: 1 , # Defaults to 0
531
+
532
+ error_handler: -> (method: , returning: , exception: ) {
533
+ # Report errors to Sentry as warnings
534
+ Raven .capture_exception exception, level: ' warning' ,
535
+ tags: { method: method, returning: returning }
536
+ }
537
537
}
538
538
```
539
539
@@ -709,4 +709,3 @@ References
709
709
710
710
* [ DHH's article on key-based expiration] ( https://signalvnoise.com/posts/3113-how-key-based-cache-expiration-works )
711
711
* [ Ryan Bates' Railscast on cache digests] ( http://railscasts.com/episodes/387-cache-digests )
712
-
0 commit comments