Class::DBI::Plugin::NoCache - CDBI record caching controller
package CD; use base qw(Class::DBI); use Class::DBI::Plugin::NoCache; __PACKAGE__->set_db(...); package Music::CD; use base qw(CD); __PACKAGE__->nocache(1); __PACKAGE__->columns(Primary => qw/id/); __PACKAGE__->columns(Essential => qw/artist title/);
When you get or create records with CDBI, all the records will be cached. However, there is a problem that a process of CDBI application can't be notified about the change of the records by other processes.
So, maybe there are times when you want to stop caching especially in mod_perl or FastCGI environment.
This module allows you to stop CDBI's caching.
This is temporary solution, chaching is essential of applications. Better to controll caches well.
Lyo Kato <lyo.kato@gmail.com>
Class::DBI, Class::DBI::Sweet
Copyright 2005 by Lyo Kato.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Class::DBI::Plugin::NoCache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Class::DBI::Plugin::NoCache
CPAN shell
perl -MCPAN -e shell install Class::DBI::Plugin::NoCache
For more information on module installation, please visit the detailed CPAN module installation guide.