Sha256: 8132db9f3e790c39bf164cbdfe833a40723cd0158ce5a03769685526ed69a47a

Contents?: true

Size: 797 Bytes

Versions: 1

Compression:

Stored size: 797 Bytes

Contents

# frozen_string_literal: true

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

    class << self
      # @param driver [Object]
      # @return [Boolean]
      #
      # @api private
      # @since 0.1.0
      def supported_driver?(driver)
        defined?(::ActiveSupport::Cache::FileStore) &&
        driver.is_a?(::ActiveSupport::Cache::FileStore)
      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_file_store.rb