mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Document redis: Object option
There are four ways to pass the redis option, but only three were documented. This is now consistent with implementation. [ci skip]
This commit is contained in:
parent
4acddae05e
commit
8fc6ec73a4
1 changed files with 7 additions and 5 deletions
|
@ -152,10 +152,12 @@ module ActiveSupport
|
|||
|
||||
# Creates a new Redis cache store.
|
||||
#
|
||||
# Handles three options: block provided to instantiate, single URL
|
||||
# provided, and multiple URLs provided.
|
||||
# Handles four options: :redis block, :redis instance, single :url
|
||||
# string, and multiple :url strings.
|
||||
#
|
||||
# Option Class Result
|
||||
# :redis Proc -> options[:redis].call
|
||||
# :redis Object -> options[:redis]
|
||||
# :url String -> Redis.new(url: …)
|
||||
# :url Array -> Redis::Distributed.new([{ url: … }, { url: … }, …])
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue