Random Thoughts from Nothingmuch

28 Aug

Session::Store::Delegate

written by Yuval Kogman

The Delegate session store plugin has just been released to the CPAN, making writing arbitrary session storage backends easier than before.

This plugin lets you easily map the storage routines to methods on e.g. a DBIx::Class row, or an arbitrary object of any other kind.

Fetching an appropriate delegate object is typically done by a model. This is easily configurable with a closure or method name to invoke on the model.

All types of accessor styles are supported ($obj->$field($value), $obj->[gs]et_$field($value), $obj->[sg]et($field, $value)), and the flush method will be called when the object is done being used.

Avatar On Nov 16 2006 at 17:58
wholesomedick wrote:

you haven't updated in a long time.

Your captcha is:






Only the comment itself is required, but if you supply your email we'll gladly load your gravatar. We won't use your email for any other purpose or sell it to nigerian business men. Promise.
A live preview of your comment will appear in this box.