in reply to Using bytecode for object serialization
Two options spring to mind. One is to use YAML for your serialization. It's fast and relatively safe. The other option would be to try Pixie. You would create an object wrapper around your data structure and use Pixie to store it in a database.
use Pixie; my $pixie = Pixie->new->connect(@connection_paramters); my $cookie = $pixie->insert($any_object);
At that point, you just cache your cookie however you want. Later, when you want the object back, retrieve the cookie and...
$pixie->get($cookie)You can also bind names to your objects and fetch by name, if you prefer. I don't know if that would be faster, but it can present a clean interface.
Cheers,
Ovid
New address of my CGI Course.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Using bytecode for object serialization
by tall_man (Parson) on Sep 26, 2003 at 18:19 UTC |