Class: RedlockForCollection::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/redlock_for_collection/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



13
14
15
16
17
18
19
20
# File 'lib/redlock_for_collection/configuration.rb', line 13

def initialize
  @pool_size    = 5
  @pool_timeout = 5
  @redis_urls   = ['redis://localhost:6379']
  @retry_delay  = 50
  @retry_count  = 5
  @pool         = nil
end

Instance Attribute Details

#poolObject

Returns the value of attribute pool.



6
7
8
# File 'lib/redlock_for_collection/configuration.rb', line 6

def pool
  @pool
end

#pool_sizeObject

Returns the value of attribute pool_size.



6
7
8
# File 'lib/redlock_for_collection/configuration.rb', line 6

def pool_size
  @pool_size
end

#pool_timeoutObject

Returns the value of attribute pool_timeout.



6
7
8
# File 'lib/redlock_for_collection/configuration.rb', line 6

def pool_timeout
  @pool_timeout
end

#redis_urlsObject

Returns the value of attribute redis_urls.



6
7
8
# File 'lib/redlock_for_collection/configuration.rb', line 6

def redis_urls
  @redis_urls
end

#retry_countObject

Returns the value of attribute retry_count.



6
7
8
# File 'lib/redlock_for_collection/configuration.rb', line 6

def retry_count
  @retry_count
end

#retry_delayObject

Returns the value of attribute retry_delay.



6
7
8
# File 'lib/redlock_for_collection/configuration.rb', line 6

def retry_delay
  @retry_delay
end