Sha256: 44804c7eb62a953b6f5b04d2b9f13bbcf38f008138e0ed9e6d239665bd28d6ee
Contents?: true
Size: 597 Bytes
Versions: 13
Compression:
Stored size: 597 Bytes
Contents
module Scrivito module Cache class FileStore include Chainable attr_reader :internal_store, :next_store def initialize(options = {}) @internal_store = ActiveSupport::Cache::FileStore.new( options[:path] || Rails.root + 'tmp/scrivito_cache') @next_store = options[:next_store] end delegate :clear, to: :internal_store private delegate :read, :write, to: :internal_store, prefix: :internal def transform_key(key) # Workaround for rails/rails#15616. Will be fixed in Rails 4.2. Digest::SHA1.hexdigest(key) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems