Sha256: a5185ba7eb0c567e8c682557c86ff08274a92b1f5ebfa085906439e5b2a76356

Contents?: true

Size: 815 Bytes

Versions: 1

Compression:

Stored size: 815 Bytes

Contents

# frozen_string_literal: true

module AnyCache::Adapters
  # @api private
  # @since 0.1.0
  class ActiveSupportMemoryStore < ActiveSupportNaiveStore
    require_relative 'active_support_memory_store/fetching'
    require_relative 'active_support_memory_store/operation'
    require_relative 'active_support_memory_store/increment'
    require_relative 'active_support_memory_store/decrement'
    require_relative 'active_support_memory_store/expire'
    require_relative 'active_support_memory_store/persist'

    class << self
      # @param driver [Object]
      # @return [Boolean]
      #
      # @api private
      # @since 0.1.0
      def supported_driver?(driver)
        defined?(::ActiveSupport::Cache::MemoryStore) &&
        driver.is_a?(::ActiveSupport::Cache::MemoryStore)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
any_cache-0.1.0 lib/any_cache/adapters/active_support_memory_store.rb