Class: EphemeralCache

Inherits:
Hash show all
Defined in:
lib/runtime/persistence.rb

Overview

Simplistic in-memory cache

Constant Summary

Constants inherited from Hash

Hash::Empty, Hash::MethodBooleanPattern, Hash::MethodWriterPattern

Instance Method Summary collapse

Methods inherited from Hash

#sort

Instance Method Details

#get(key) ⇒ Object



43
44
45
# File 'lib/runtime/persistence.rb', line 43

def get(key)
  self[key]
end

#set(key, value, _ttl) ⇒ Object



46
47
48
# File 'lib/runtime/persistence.rb', line 46

def set(key, value, _ttl)
  self[key] = value
end