Method: XmlSimple::Cache#save_mem_share

Defined in:
lib/xml-simple-1.0.12/lib/xmlsimple.rb

#save_mem_share(data, filename) ⇒ Object

Saves a data structure in a shared memory cache.

data

Data structure to be saved.

filename

Name of the file belonging to the data structure.



56
57
58
# File 'lib/xml-simple-1.0.12/lib/xmlsimple.rb', line 56

def save_mem_share(data, filename)
  @mem_share_cache[filename] = [Time::now.to_i, data]
end