Method: App::Cache.store

Defined in:
lib/aws/aws_cache.rb

.store(key, data, expire_hours = nil) ⇒ Object

Stores a string representation of a Array/Hash/String in the /tmp directory using a unique key + timestamp. Key is the unique key used for retrieving it – stored as constant in class above ^ App::CacheKey Data can be either anything. It will simply be stored as object.inspect. Expire hours is the amount of hours this Hash should be stored for.

Returns:

  • void



16
17
18
19
20
# File 'lib/aws/aws_cache.rb', line 16

def self.store(key, data, expire_hours = nil)

    # TODO

end