|Perl Monk, Perl Meditation|
Best way to store an object collection.by jeteve (Pilgrim)
|on Aug 04, 2005 at 09:23 UTC||Need Help??|
jeteve has asked for the
wisdom of the Perl Monks concerning the following question:
Hi monks. Here is my quest:
I wish to store a collection of heterogeneous objects under a key name in order to make them persistent. I don't need to query them, I just need to be able to give the key and retrieve the collection. I also like to use a RDMS server as storage backend.
I had a look to *Session* ( like CGI::Session ) or *Cache* (like Cache::FileCache ) but theses storage are dedicated to store temporaly objects so they don't really fit my needs since object destiny is to expire within those storages.
I also had a look at data serializers like Data::Serializer, but it don't seem able to use a database as storage backend.What would you do you wise monks to cope with that issue ?
Nice photos of naked perl sources here !