Class: SolidCache::Cluster

Inherits:
Object
  • Object
show all
Includes:
Connections, Execution, Expiry, Stats
Defined in:
lib/solid_cache/cluster.rb,
lib/solid_cache/cluster/stats.rb,
lib/solid_cache/cluster/expiry.rb,
lib/solid_cache/cluster/execution.rb,
lib/solid_cache/cluster/connections.rb

Defined Under Namespace

Modules: Connections, Execution, Expiry, Stats

Constant Summary

Constants included from Expiry

Expiry::EXPIRY_MULTIPLIER

Instance Attribute Summary collapse

Attributes included from Connections

#shard_options

Attributes included from Expiry

#expires_per_write, #expiry_batch_size, #expiry_method, #expiry_queue, #max_age, #max_entries, #max_size

Instance Method Summary collapse

Methods included from Connections

#connection_names, #connections, #group_by_connection, #with_connection, #with_connection_for, #with_each_connection

Methods included from Expiry

#track_writes

Methods included from Stats

#stats

Constructor Details

#initialize(options = {}) ⇒ Cluster

Returns a new instance of Cluster.



9
10
11
12
# File 'lib/solid_cache/cluster.rb', line 9

def initialize(options = {})
  @error_handler = options[:error_handler]
  super(options)
end

Instance Attribute Details

#error_handlerObject (readonly)

Returns the value of attribute error_handler.



7
8
9
# File 'lib/solid_cache/cluster.rb', line 7

def error_handler
  @error_handler
end

Instance Method Details

#setup!Object



14
15
16
# File 'lib/solid_cache/cluster.rb', line 14

def setup!
  super
end