Method: CloudConfig::Cache::InMemory#get

Defined in:
lib/cloud-config/cache/in_memory.rb

#get(key) ⇒ Object

Fetch the key from the cache



45
46
47
48
49
# File 'lib/cloud-config/cache/in_memory.rb', line 45

def get(key)
  expire(key)

  settings.dig(key, :value)
end