debian man page for catalyst::traitfor::model::dbic::schema::caching

Query: catalyst::traitfor::model::dbic::schema::caching

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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)
Related Man Pages
catalyst::helper::model::cdbi(3pm) - debian
catalyst::helper::model::dbic::schema(3pm) - debian
catalyst::model::adaptor(3pm) - debian
catalyst::traitfor::model::dbic::schema::caching(3pm) - debian
catalyst::traitfor::model::dbic::schema::replicated(3pm) - debian
Similar Topics in the Unix Linux Community
Clustered Databases Versus Virtualization for CEP Applications
Model Railroad System 2.1.14a (Default branch)
Model Railroad System 2.1.15 (Default branch)
Model Railroad System 2.1.15a (Default branch)
AgileWiki 0-1 (Element Model branch)