Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catalyst::traitfor::model::dbic::schema::caching(3pm) [debian 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)

Check Out this Related Man Page

Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchemUsermContributed Perl DocumeCatalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema(3pm)

NAME
Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema - Clone the schema with attributes for each requests SYNOPSIS
__PACKAGE__->config({ traits => ['PerRequestSchema'], }); sub per_request_schema_attributes { my ($self, $c) = @_; return (restricting_object => $c->user->obj); } ### OR ### sub per_request_schema { my ($self, $c) = @_; return $self->schema->schema_method($c->user->obj) } DESCRIPTION
Clones the schema for each new request with the attributes retrieved from your "per_request_schema_attributes" method, which you must implement. This method is passed the context. Alternatively, you could also override the "per_request_schema" method if you need access to the schema clone and/or need to separate out the Model/Schema methods. (See examples above and the defaults in the code.) SEE ALSO
Catalyst::Model::DBIC::Schema, DBIx::Class::Schema 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 2012-06-12 Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema(3pm)
Man Page

6 More Discussions You Might Find Interesting

1. Linux Benchmarks

Sun Ultra30, Gentoo 1.4.3.10p1

Notes: CPU/Speed: UltraSparcII 296Mhz Ram:512M Motherboard: Bus: Cache: Controller: Disk: SEAGATE Model: ST34371W SUN4.2G Load: Kernel: Kernel ELF?: pgms: Results: BYTE UNIX Benchmarks (Version 3.11) System -- Linux box 2.4.21-sparc-r1 #1 Wed Oct 1 12:32:52 EDT 2003... (0 Replies)
Discussion started by: tnorth
0 Replies

2. High Performance Computing

Clustered Databases Versus Virtualization for CEP Applications

Tim Bass Sat, 17 Nov 2007 04:11:25 +0000 In my earlier*post, A Model For Distributed Event*Processing, I promised to address grid computing, distributed object caching and virtualization, and how these technologies relate to complex event processing.***Some of my readers might forget my earlier... (0 Replies)
Discussion started by: Linux Bot
0 Replies

3. Shell Programming and Scripting

Perl - nested substitutions

How can I nest substitutions ? My solution just seems cheap ... sample data Cisco Catalyst Operating System Software, Version 235.5(18) Cisco Catalyst Operating System Software, Version 17.6(7) Cisco Catalyst Operating System Software, Version 19.6(7) Cisco Catalyst Operating System... (1 Reply)
Discussion started by: popeye
1 Replies

4. AIX

Model old user for new user

Hello, an employee just left the company and a new user has taken his place. the request is to for the new user to have the same access to the servers as the old employee had. the old user still has his account present on the servers. can anyone tell me an easy way of doing this? without... (10 Replies)
Discussion started by: audis$
10 Replies

5. Filesystems, Disks and Memory

SSD Caching, how its done, right choice?

Hello, someone needed VPS with SSD caching, he want to use server for websites hosting. What does that mean, this SSD caching and is it optimal solution for this? Also i listen some SSD dont like too much of writting so how one can recognise certain SSD is made the way that its not destroyed... (1 Reply)
Discussion started by: postcd
1 Replies

6. IP Networking

WS-C2960S-24PD-L vs WS-C2960S-24PS-L

Does anyone know the noticable different between Catalyst 2960S 24 GigE PoE 370W 2 x 10G SFP+ LAN Base and Catalyst 2960S 24 GigE PoE 370W 4 x SFP LAN Base ? (0 Replies)
Discussion started by: Ayaerlee
0 Replies