Sha256: 85afc2b52a2f195496b7a25ff41742daa3f9341b567e8071e259a53466eeb3b9
Contents?: true
Size: 472 Bytes
Versions: 4
Compression:
Stored size: 472 Bytes
Contents
require 'active_support/cache' require 'json' require 'perforated/cache' module Perforated extend self def new(*args) Perforated::Cache.new(*args) end def cache=(new_cache) @cache = new_cache end def cache @cache ||= ActiveSupport::Cache::MemoryStore.new end def json=(new_json) @json = new_json end def json @json ||= JSON end def configure yield self end def reset! @cache = nil @json = nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
perforated-0.10.1 | lib/perforated.rb |
perforated-0.10.0 | lib/perforated.rb |
perforated-0.9.1 | lib/perforated.rb |
perforated-0.9.0 | lib/perforated.rb |