Class: Redic

Inherits:
Object
  • Object
show all
Defined in:
lib/redic-sentinel/redic.rb,
lib/redic-sentinel/version.rb

Defined Under Namespace

Modules: Sentinel Classes: Client

Instance Method Summary collapse

Constructor Details

#initialize(url = "redis://127.0.0.1:6379", timeout = 10_000_000, options = {}) ⇒ Redic

Returns a new instance of Redic.



4
5
6
7
8
# File 'lib/redic-sentinel/redic.rb', line 4

def initialize(url = "redis://127.0.0.1:6379", timeout = 10_000_000, options = {})
  @url = url
  @client = Redic::Client.new(url, timeout, options)
  @queue = []
end