Skip to content

Commit 934966a

Browse files
author
Nicholas Stuart
committed
fix rubymine copy/paste spaces
1 parent b2e9c4c commit 934966a

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

guides/source/caching_with_rails.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -524,16 +524,16 @@ A more complex, production Redis cache store may look something like this:
524524
cache_servers = %w(redis://cache-01:6379/0 redis://cache-02:6379/0)
525525
config.cache_store = :redis_cache_store, { url: cache_servers,
526526

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+
}
537537
}
538538
```
539539

@@ -709,4 +709,3 @@ References
709709

710710
* [DHH's article on key-based expiration](https://signalvnoise.com/posts/3113-how-key-based-cache-expiration-works)
711711
* [Ryan Bates' Railscast on cache digests](http://railscasts.com/episodes/387-cache-digests)
712-

0 commit comments

Comments
 (0)