class Cache::Backend::Inmemory

Constants

VERSION

Public Class Methods

new() click to toggle source
# File lib/cache/backend/inmemory.rb, line 6
def initialize
  @cache = Hash.new
end

Public Instance Methods

get(key) click to toggle source
# File lib/cache/backend/inmemory.rb, line 10
def get(key)
  @cache[key]
end
set(key, value) click to toggle source
# File lib/cache/backend/inmemory.rb, line 14
def set(key, value)
  @cache[key] = value
end