Class::Freezer::Lite - Simple perl object persistence tool
use Class::Freezer::Lite;
Class::Freezer::Lite is a super lite module to make perl object persistence, and it is similar in KiokuDB.
* Not support scope, transparent systems.
* This will be able to store only simple blessed hash object (like Mouse or Class::Accessor).
-
connect
my $freezer = Class::Freezer::Lite->connect( "dbi:SQLite:dbname=:memory:", "", "", { sqlite_unicode => 1, } );
-
store
my $id = $freezer->store($obj);
-
load
my $obj = $freezer->load($id);
-
delete
$freezer->delete($id);
-
search
my @ids = $freezer->search( key => 'name', value => { 'like', '%e' }, );
Naoki Tomita tomita@cpan.org
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.