instance method
save_mem_copy
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
save_mem_copy(data, filename)
Copies a data structure to a memory cache.
- data
-
Data structure to be copied.
- filename
-
Name of the file belonging to the data structure.
Parameters
-
datareq -
filenamereq
Source
# File activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 77
def save_mem_copy(data, filename)
@mem_share_cache[filename] = [Time::now.to_i, Marshal.dump(data)]
end
Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 77
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in XmlSimple::Cache