Class: URI::Redis

Inherits:
Generic
  • Object
show all
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

#dbObject



9
10
11
# File 'lib/redis/url.rb', line 9

def db
  path[1..-1].to_i
end