Sha256: 0432ebf56dc6075e476c308166959ecae536f8d820d83fb5aaa0f33060c54f88

Contents?: true

Size: 388 Bytes

Versions: 2

Compression:

Stored size: 388 Bytes

Contents

require 'active_support/cache'
require 'json'
require 'perforated/cache'
require 'perforated/compatibility/fetch_multi'
require 'perforated/strategy/default'
require 'perforated/version'

module Perforated
  def self.cache=(new_cache)
    @cache = new_cache
  end

  def self.cache
    @cache ||= ActiveSupport::Cache::MemoryStore.new
  end

  def self.configure
    yield self
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
perforated-0.7.0 lib/perforated.rb
perforated-0.6.0 lib/perforated.rb