class Plyushkin::Cache::Stub
Public Class Methods
new()
click to toggle source
# File lib/plyushkin/cache/stub.rb, line 2 def initialize @cache = {} end
Public Instance Methods
clear()
click to toggle source
# File lib/plyushkin/cache/stub.rb, line 14 def clear @cache = {} end
read(key)
click to toggle source
# File lib/plyushkin/cache/stub.rb, line 10 def read(key) @cache[key] end
write(key, value)
click to toggle source
# File lib/plyushkin/cache/stub.rb, line 6 def write(key, value) @cache[key] = value end