1
0
Fork 0
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:
Steven Harman 2019-04-18 17:29:22 -04:00 committed by Jeremy Daer
parent 4acddae05e
commit 8fc6ec73a4

View file

@ -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: … }, …])
#