debian man page for dbix::class::cursor::cached

Query: dbix::class::cursor::cached

OS: debian

Section: 3pm

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

DBIx::Class::Cursor::Cached(3pm)			User Contributed Perl Documentation			  DBIx::Class::Cursor::Cached(3pm)

NAME
DBIx::Class::Cursor::Cached - cursor class with built-in caching support
SYNOPSIS
my $schema = SchemaClass->connect( $dsn, $user, $pass, { cursor_class => 'DBIx::Class::Cursor::Cached' } ); $schema->default_resultset_attributes({ cache_object => Cache::FileCache->new({ namespace => 'SchemaClass' }), }); my $rs = $schema->resultset('CD')->search(undef, { cache_for => 300 }); my @cds = $rs->all; # fills cache $rs = $schema->resultset('CD')->search(undef, { cache_for => 300 }); # refresh resultset @cds = $rs->all; # uses cache, no SQL run $rs->cursor->clear_cache; # deletes data from cache @cds = $rs->all; # refills cache
AUTHOR
Matt S Trout <mst@shadowcat.co.uk> http://www.shadowcat.co.uk/ Initial development sponsored by and (c) Takkle, Inc. 2007
LICENSE
This library is free software under the same license as perl itself perl v5.12.4 2011-08-05 DBIx::Class::Cursor::Cached(3pm)
Related Man Pages
dbix::class::storage::dbi::cursor(3) - mojave
dbix::class::resultclass::hashrefinflator(3) - osx
dbix::class::resultclass::hashrefinflator(3pm) - debian
dbix::class::schema::loader::dbobject::informix(3pm) - debian
dbix::class::schema::loader::dbobject::sybase(3pm) - debian
Similar Topics in the Unix Linux Community
awk or sed - Convert 2 lines to 1 line
Is UNIX an open source OS ?
Introduction
One instance of comparing grep and awk
Find columns in a file based on header and print to new file