class Cacheable::TestCache

Public Class Methods

instance() click to toggle source
# File lib/cache_utils.rb, line 16
def self.instance
  @@cache_instance ||= TestCache.new
end

Public Instance Methods

delete(key) click to toggle source
# File lib/cache_utils.rb, line 28
def delete(key)
  @@cache_storage.delete(key)
end
fetch(key) click to toggle source
# File lib/cache_utils.rb, line 20
def fetch(key)
  @@cache_storage[key]
end
keys() click to toggle source
# File lib/cache_utils.rb, line 32
def keys
  @@cache_storage.keys
end
write(key, value, options = {}) click to toggle source
# File lib/cache_utils.rb, line 24
def write(key, value, options = {})
  @@cache_storage[key] = value
end