class Tochtli::Test::MemoryCache
a simple proxy to replicate ActiveSupport cache interface using mini store
Attributes
store[R]
Public Class Methods
new()
click to toggle source
# File lib/tochtli/test/memory_cache.rb, line 9 def initialize @store = MiniCache::Store.new end
Public Instance Methods
read(name)
click to toggle source
# File lib/tochtli/test/memory_cache.rb, line 17 def read(name) store.get(name) end
write(name, value)
click to toggle source
# File lib/tochtli/test/memory_cache.rb, line 13 def write(name, value) store.set(name, value) end