Class: Ruberto::Configuration::MemoryCache

Inherits:
Object
  • Object
show all
Defined in:
lib/ruberto/configuration/memory_cache.rb

Instance Method Summary collapse

Instance Method Details

#clearObject



8
# File 'lib/ruberto/configuration/memory_cache.rb', line 8

def clear = memory_store.clear

#delete(key) ⇒ Object



9
# File 'lib/ruberto/configuration/memory_cache.rb', line 9

def delete(key) = memory_store.delete(key)

#memory_storeObject



10
# File 'lib/ruberto/configuration/memory_cache.rb', line 10

def memory_store = @memory_store ||= {}

#read(key) ⇒ Object



6
# File 'lib/ruberto/configuration/memory_cache.rb', line 6

def read(key) = memory_store[key]

#write(key, value, _options = {}) ⇒ Object



7
# File 'lib/ruberto/configuration/memory_cache.rb', line 7

def write(key, value, _options = {}) = memory_store[key] = value