module Perforated

Constants

VERSION

Public Instance Methods

cache() click to toggle source
# File lib/perforated.rb, line 16
def cache
  @cache ||= ActiveSupport::Cache::MemoryStore.new
end
cache=(new_cache) click to toggle source
# File lib/perforated.rb, line 12
def cache=(new_cache)
  @cache = new_cache
end
configure() { |self| ... } click to toggle source
# File lib/perforated.rb, line 28
def configure
  yield self
end
json() click to toggle source
# File lib/perforated.rb, line 24
def json
  @json ||= JSON
end
json=(new_json) click to toggle source
# File lib/perforated.rb, line 20
def json=(new_json)
  @json = new_json
end
new(*args) click to toggle source
# File lib/perforated.rb, line 8
def new(*args)
  Perforated::Cache.new(*args)
end
reset!() click to toggle source
# File lib/perforated.rb, line 32
def reset!
  @cache = nil
  @json  = nil
end