I'm going to need to cache my objects into memcached , and looking
for options.
the quick&dirty way would be to just use storable. i think
cache::memcached should be able to bring back the entire object
structure -- including nested objects
has anyone done this? pros / cons ?
my other option, the cleaner way, would be to serialize to/from
yaml , so non-rdbo interfaces can use this data.
I have an awkward patch doing this for specific relations already,
but I need to make this more generic and automagic.
is it work making some new helper functions to push back to rose in
this area ?
i'm thinking of the following naming scheme:
Helpers::object_as_yaml
Helpers::init_with_yaml_object
( using the term 'object' as it is a deep 'loaded related' object,
not a flat column/pairs )
I think i can query:
$obj->meta->foreign_keys
$obj->meta->relationships
to get the status for the has_loaded_related fields
comments / suggestions ?
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Rose-db-object mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rose-db-object