Gantry::Plugins::Cache::Memcached - A Plugin interface to a caching subsystem
It is sometimes desirable to cache data between page acceses. This module gives access to the Cache::Memcached module to store that data.
<Perl> # ... use MyApp qw{ -Engine=CGI -TemplateEngine=TT Cache::Memcached }; <.
This method will initialize the cache. It should be called only once within the application.
$self->cache_init();
For internal use.
Dual use accessor for init flag. If cache_init has run this attribute is 1, otherwise it's 0.();
Equivalent to
$self->cache_handle(); is currently not available with memcached.
This method will clear the entire cache.
$self->cache_clear();
This method removes the data associated with the current namespace/key combination.
$self->cache_namespace($namespace); $self->cache_del($key);
Retrieves the current expiration time for data items with thecache. The expiration time can be changed for this module. It is adviseable to not do so. Expiration time formats are highly specific to the underlining cache handler.
$expiration = $self->cache_expires();
Gantry
Kevin L. Esteb <kesteb@wsipc.org>,.