README
1NAME
2 Catalyst::Plugin::Cache::Memcached::Fast - Catalyst Plugin for
3 Cache::Memcached::Fast
4
5SYNOPSIS
6 use Catalyst qw[Cache::Memcached::Fast];
7
8 MyApp->config(
9 cache => {
10 servers => [
11 '127.0.0.1:11211',
12 '127.0.0.1:11212',
13 ],
14 namespace => 'MyApp:',
15 }
16 );
17 my $data;
18
19 unless ( $data = $c->cache->get('data') ) {
20 $data = $c->model('MyApp::MyData')->search();
21 $c->cache->set( 'data', $data );
22 }
23
24 $c->response->body($data);
25
26DESCRIPTION
27 Extends base class with a distributed cache.
28
29METHODS
30 cache
31 Returns an instance of "Cache::Memcached::Fats"
32
33SEE ALSO
34 Cache::Memcached::Fast, Catalyst.
35
36AUTHOR
37 Vasiliy Voloshin, "<vasiliy.voloshin at gmail.com>"
38
39LICENSE
40 This library is free software . You can redistribute it and/or modify it
41 under the same terms as perl itself.
42
43