Module: AnyCache::Drivers::ActiveSupportMemCacheStore Private
- Defined in:
- lib/any_cache/drivers/active_support_mem_cache_store.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
- .build(settings) ⇒ ::ActiveSupport::Cache::MemCacheStore private
- .supported_source?(driver) ⇒ Boolean private
Class Method Details
.build(settings) ⇒ ::ActiveSupport::Cache::MemCacheStore
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/any_cache/drivers/active_support_mem_cache_store.rb', line 21 def build(settings) ::ActiveSupport::Cache::MemCacheStore.new([Array(settings.servers), settings.]) end |
.supported_source?(driver) ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 13 14 |
# File 'lib/any_cache/drivers/active_support_mem_cache_store.rb', line 10 def supported_source?(driver) defined?(::Dalli) && defined?(::ActiveSupport::Cache::MemCacheStore) && driver.is_a?(::ActiveSupport::Cache::MemCacheStore) end |