The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Class::DBI::Plugin::NoCache - CDBI record caching controller

SYNOPSIS

  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/);

DESCRIPTION

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.

AUTHOR

Lyo Kato <lyo.kato@gmail.com>

SEE ALSO

Class::DBI, Class::DBI::Sweet

COPYRIGHT AND LICENSE

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.