instance method
restore_mem_copy
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
restore_mem_copy(filename)
Restores a data structure from a memory cache. If restoring the data structure failed for any reason, nil will be returned.
- filename
-
Name of the file belonging to the data structure.
Parameters
-
filenamereq
Source
# File activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 87
def restore_mem_copy(filename)
data = get_from_memory_cache(filename, @mem_share_cache)
data = Marshal.load(data) unless data.nil?
data
end
Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 87
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in XmlSimple::Cache