module AnyCache::Drivers::ActiveSupportMemoryStore

@api private @since 0.2.0

Public Class Methods

build(settings) click to toggle source

@param settings [Qonfig::Settings] @return [::ActiveSupport::Cache::MemoryStore]

@api private @sicne 0.2.0

# File lib/any_cache/drivers/active_support_memory_store.rb, line 22
def build(settings)
  ::ActiveSupport::Cache::MemoryStore.new(settings.options)
end
supported_source?(driver) click to toggle source

@param driver [::ActiveSupport::Cache::MemoryStore] @return [Boolean]

@api private @since 0.2.0

# File lib/any_cache/drivers/active_support_memory_store.rb, line 12
def supported_source?(driver)
  defined?(::ActiveSupport::Cache::MemoryStore) &&
  driver.is_a?(::ActiveSupport::Cache::MemoryStore)
end