class Scripter::CacheStore

Public Class Methods

new() click to toggle source
# File lib/scripter/cache_store.rb, line 5
def initialize
  @cache = defined?(Rails) ? Rails.cache : ActiveSupport::Cache.lookup_store(:file_store, 'tmp/cache')
end

Public Instance Methods

read(*args) click to toggle source
# File lib/scripter/cache_store.rb, line 9
def read(*args)
  @cache.read(*args)
end
write(*args) click to toggle source
# File lib/scripter/cache_store.rb, line 13
def write(*args)
  @cache.write(*args)
end