Class XmlSimple::Cache
In: lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb
Parent: Object

A simple cache for XML documents that were already transformed by xml_in.

Methods

Public Class methods

Creates and initializes a new Cache object.

Public Instance methods

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.

Restores a data structure from a shared memory cache. You should consider these elements as "read only". If restoring the data structure failed for any reason, nil will be returned.

filename:Name of the file belonging to the data structure.

Restores a data structure from a file. If restoring the data structure failed for any reason, nil will be returned.

filename:Name of the file belonging to the data structure.

Copies a data structure to a memory cache.

data:Data structure to be copied.
filename:Name of the file belonging to the data structure.

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.

Saves a data structure into a file.

data:Data structure to be saved.
filename:Name of the file belonging to the data structure.

[Validate]