Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catalyst::plugin::cache::store::fastmmap(3pm) [debian man page]

Catalyst::Plugin::Cache::Store::FastMmap(3pm)		User Contributed Perl Documentation	     Catalyst::Plugin::Cache::Store::FastMmap(3pm)

NAME
Catalyst::Plugin::Cache::Store::FastMmap - DEPRECATED - FastMmap cache store for Catalyst::Plugin::Cache. SYNOPSIS
# instead of using this plugin, you can now do this: use Catalyst qw/ Cache /; __PACKAGE__->config( cache => { backend => { class => "Cache:FastMmap", share_file => "/path/to/file", cache_size => "16m", }, }); STATUS
This plugin is deprecated because Cache::FastMmap no longer needs to be wrapped to store plain values. It is still available on the CPAN for backwards compatibility and will still work with newer versions of Cache::FastMmap with a slight performance degredation. DESCRIPTION
This store plugin is a bit of a wrapper for Cache::FastMmap. While you could normally just configure with backend => { class => "Cache::FastMmap", share_file => ..., } Cache::FastMmap can't store plain values by default. This module ships with a subclass that will wrap all values in a scalar reference before storing. This store plugin will try to provide a default "share_file" as well, that won't clash with other apps. CONFIGURATION
See "CONFIGURATION" in Catalyst::Plugin::Cache for a general overview of cache plugin configuration. This plugin just takes a hash reference in the backend field and passes it on to Cache::FastMmap. SEE ALSO
Catalyst::Plugin::Cache, Cache::FastMmap. AUTHOR
Yuval Kogman, "nothingmuch@woobling.org" COPYRIGHT &; LICENSE Copyright (c) Yuval Kogman, 2006. All rights reserved. This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself, as well as under the terms of the MIT license. perl v5.14.2 2007-07-05 Catalyst::Plugin::Cache::Store::FastMmap(3pm)

Check Out this Related Man Page

Catalyst::TraitFor::Model::DBIC::Schema::Caching(3pm)	User Contributed Perl Documentation  Catalyst::TraitFor::Model::DBIC::Schema::Caching(3pm)

NAME
Catalyst::TraitFor::Model::DBIC::Schema::Caching - Query caching support for Catalyst::Model::DBIC::Schema SYNOPSIS
__PACKAGE__->config({ traits => ['Caching'], connect_info => ['dbi:mysql:db', 'user', 'pass'], }); $c->model('DB::Table')->search({ foo => 'bar' }, { cache_for => 18000 }); DESCRIPTION
Enable caching support using DBIx::Class::Cursor::Cached and Catalyst::Plugin::Cache. In order for this to work, Catalyst::Plugin::Cache must be configured and loaded. A possible configuration would look like this: <Plugin::Cache> <backend> class Cache::FastMmap unlink_on_exit 1 share_file /tmp/myapp_share </backend> </Plugin::Cache> Then in your queries, set the "cache_for" ResultSet attribute to the number of seconds you want the query results to be cached for, eg.: $c->model('DB::Table')->search({ foo => 'bar' }, { cache_for => 18000 }); CONFIG PARAMETERS
caching Turn caching on or off, you can use: $c->model('DB')->caching(0); SEE ALSO
Catalyst::Model::DBIC::Schema, DBIx::Class, Catalyst::Plugin::Cache, Cache::FastMmap, DBIx::Class::Cursor::Cached AUTHOR
See "AUTHOR" in Catalyst::Model::DBIC::Schema and "CONTRIBUTORS" in Catalyst::Model::DBIC::Schema. COPYRIGHT
See "COPYRIGHT" in Catalyst::Model::DBIC::Schema. LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-05-15 Catalyst::TraitFor::Model::DBIC::Schema::Caching(3pm)
Man Page