I changed the name of my model class to MoCo.pm
It's light & fast Model Component.
http://search.cpan.org/dist/MoCo/ (it's processing now)
Also, I implemented session features today.
You can delay your update/create operation using MoCo's session.
If you call MoCo->start_session once, a session will be started and update/create queries will be delayed until the session will be ended or save method will be called expressly.
# in your web server etc..
MoCo->start_session;
# in your scripts
my $user = Blog::User->retrieve(123);
$user->name('jkondo'); # not saved now. changed in cache.
print $user->name; # 'jkondo'
$user->save; # update db
print Blog::User->retrieve(123)->name; # 'jkondo'
# Or, update queries will be thrown automatically after ending session.
$user->name('jkontan');
Moco->end_session;
print Blog::User->retrieve(123)->name; # 'jkontan'
agreed - prefer the old name
TeeJay on 2007-02-01T13:24:30
I think Class::MoCo is a better nameRe:Name
jkondo on 2007-02-01T17:19:00
OK, I'll consider about the name again.
Thank you for your opinion.