class DeloreanTestBed::Cache

Public Class Methods

cache() click to toggle source

Set our own cache or read the setup one

# File lib/delorean_test_bed/cache.rb, line 8
def self.cache
  ActiveSupport::Cache.lookup_store(Rails.application.config.cache_store)
end
read(k) click to toggle source
# File lib/delorean_test_bed/cache.rb, line 16
def self.read(k)
  cache.read([:delorean,:key])
end
write(k,v) click to toggle source
# File lib/delorean_test_bed/cache.rb, line 12
def self.write(k,v)
  cache.write([:delorean,:key],v)
end