instance method save_mem_copy

Ruby on Rails 2.2.3

Since v2.2.3 Last seen in v2.2.3

Signature

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

data req
filename req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close