Random Thoughts from Nothingmuch
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->[sg]et($field, $value)), and the
flush method will be called when the object is done being used.