Text::MicroMason::Cache::File - Basic Cache with File-Based Expiration
This simple cache class expects the keys provided to it to be file pathnames, and considers the cached value to have expired if the corresponding file is changed.
It does not perform the following functions: cache size limiting, or deep copying of complex values.
$cache = Text::MicroMason::Cache::File->new();
$value = $cache->get( $filename );
Retrieves the value associated with this key, or undef if there is no value.
$cache->set( $filename, $value );
Stores the provided value in association with this key.
Removes all data from the cache.
For uses of this cache class, see Text::MicroMason::CompileCache.
For distribution, installation, support, copyright and license information, see Text::MicroMason::Docs::ReadMe.