Class: SolidCache::Store

Inherits:
ActiveSupport::Cache::Store
  • Object
show all
Includes:
ActiveSupport::Cache::Strategy::LocalCache, Api, Connections, Entries, Execution, Expiry, Failsafe, Stats
Defined in:
lib/solid_cache/store.rb,
lib/solid_cache/store/api.rb,
lib/solid_cache/store/stats.rb,
lib/solid_cache/store/expiry.rb,
lib/solid_cache/store/entries.rb,
lib/solid_cache/store/failsafe.rb,
lib/solid_cache/store/execution.rb,
lib/solid_cache/store/connections.rb

Defined Under Namespace

Modules: Api, Connections, Entries, Execution, Expiry, Failsafe, Stats

Constant Summary

Constants included from Api

Api::DEFAULT_MAX_KEY_BYTESIZE, Api::SQL_WILDCARD_CHARS

Constants included from Expiry

Expiry::EXPIRY_MULTIPLIER

Constants included from Failsafe

Failsafe::DEFAULT_ERROR_HANDLER, Failsafe::TRANSIENT_ACTIVE_RECORD_ERRORS

Instance Attribute Summary

Attributes included from Api

#max_key_bytesize

Attributes included from Connections

#shard_options

Attributes included from Entries

#clear_with

Attributes included from Expiry

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Api

#cleanup, #clear, #decrement, #increment

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 = {}) ⇒ Store

Returns a new instance of Store.



8
9
10
# File 'lib/solid_cache/store.rb', line 8

def initialize(options = {})
  super(SolidCache.configuration.store_options.merge(options))
end

Class Method Details

.supports_cache_versioning?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/solid_cache/store.rb', line 12

def self.supports_cache_versioning?
  true
end

Instance Method Details

#setup!Object



16
17
18
# File 'lib/solid_cache/store.rb', line 16

def setup!
  super
end