Class: URI::Redis
- Inherits:
-
Generic
- Object
- Generic
- URI::Redis
- Defined in:
- lib/redis/url.rb
Constant Summary collapse
- DEFAULT_PORT =
6379
- COMPONENT =
[:scheme, :password, :host, :port, :db].freeze
Instance Method Summary collapse
Instance Method Details
#db ⇒ Object
9 10 11 |
# File 'lib/redis/url.rb', line 9 def db path[1..-1].to_i end |