Storage
- MooseX::Storage can only stringify native Moose types.
- If you use other types, you'll have to add a
custom_type_handler
to expand and collapse the respective objects.
MooseX::Storage::Engine->add_custom_type_handler( 'DateTime' => ( expand => sub { DateTime::Format::ISO8601->parse_datetime(shift) }, collapse => sub { (shift)->iso8601 } ) );