Василий Волошин > Catalyst-Plugin-Cache-Memcached-Fast-0.14 > Catalyst::Plugin::Cache::Memcached::Fast

Download:
Catalyst-Plugin-Cache-Memcached-Fast-0.14.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.14   Source  

EXTENDED METHODS

setup

NAME ^

Catalyst::Plugin::Cache::Memcached::Fast - Catalyst Plugin for Cache::Memcached::Fast

SYNOPSIS ^

        use Catalyst qw[Cache::Memcached::Fast];

        MyApp->config(
                cache => {
                        servers => [
                                '127.0.0.1:11211',
                                '127.0.0.1:11212',
                        ],
                        namespace => 'MyApp:',
                }
        );
        my $data;

        unless ( $data = $c->cache->get('data') ) {
                $data = $c->model('MyApp::MyData')->search();
                $c->cache->set( 'data', $data );
        }

        $c->response->body($data);

DESCRIPTION ^

Extends base class with a distributed cache.

METHODS ^

cache

Returns an instance of Cache::Memcached::Fast

SEE ALSO ^

Cache::Memcached::Fast, Catalyst.

AUTHOR ^

Vasiliy Voloshin, <vasiliy.voloshin at gmail.com>

LICENSE ^

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.

syntax highlighting: