Class: CartoDB::Client::Cache

Inherits:
Hash
  • Object
show all
Defined in:
lib/cartodb-rb-client/cartodb/client/cache.rb

Instance Method Summary collapse

Instance Method Details

#get(key) ⇒ Object



5
6
7
# File 'lib/cartodb-rb-client/cartodb/client/cache.rb', line 5

def get(key)
  self[key]
end

#set(key, object, timeout = 0) ⇒ Object



9
10
11
# File 'lib/cartodb-rb-client/cartodb/client/cache.rb', line 9

def set(key, object, timeout = 0)
  self[key] = object
end