Class: EphemeralCache

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

Overview

Simplistic in-memory cache

Instance Method Summary collapse

Instance Method Details

#get(key) ⇒ Object



37
38
39
# File 'lib/story_teller/persistence.rb', line 37

def get(key)
  self[key]
end

#set(key, value, _ttl) ⇒ Object



40
41
42
# File 'lib/story_teller/persistence.rb', line 40

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