So I have pushed my first ever CPAN module, MooseX::Storage::File_or_DB
I blogged about this as I started the module before
and this weekend I was finally able to finish the first release.
As of the moment, you need to use this by extending it
But I hope for a future release just to be able to
This gives functionality to enable you to write to either a file a JSON string, or a database, and re-instantiate the object from either.
It makes heavy use of MooseX::Storage ( http://tinyurl.com/nujf4c ) - a big thanks to Tomas Doran for writing this - for inspecting the object, and providing the ability to write out to a file as a JSON string.
I hope that this will prove useful. Please do read the POD/CPAN page before use, and contact me about anything you feel relating to this - all constructive comments gratefully received.