class Ey::Core::MemoryCache
Public Class Methods
cache()
click to toggle source
# File lib/ey-core/memory_cache.rb, line 2 def self.cache @cache ||= {} end
read(key)
click to toggle source
# File lib/ey-core/memory_cache.rb, line 10 def self.read(key) cache[key] end
reset!()
click to toggle source
# File lib/ey-core/memory_cache.rb, line 6 def self.reset! self.cache.clear end
write(key, value)
click to toggle source
# File lib/ey-core/memory_cache.rb, line 14 def self.write(key, value) cache[key] = value end