Rechercher une page de manuel
Jifty::CAS::Blob.3pm
Langue: en
Version: 2009-07-20 (ubuntu - 24/10/10)
Section: 3 (Bibliothèques de fonctions)
NAME
Jifty::CAS::Blob - An object in Jifty's content-addressed storeSYNOPSIS
my $blob = Jifty::CAS->retrieve('js', $key); my $content = $blob->content; my $meta = $blob->metadata; my $key = $blob->key;
DESCRIPTION
Objects in the content-addressed store can have arbitrary metadata associated with them, in addition to storing their contents.METHODS
new HASHREF
Takes a HASHREF, with possible keys ``content'' and ``metadata'', and creates a new object. Possible special keys in the metadata include:- hash_with
- Provides the data to hash to generate the address. If no "hash_with" is provided, the content itself is hashed.
- deflate
- If set to a true value, deflates the content using ``memGzip'' in Compress::Zlib, and stores that in ``content_deflated''.
content
Returns the content of the blob.content_deflated
If ``deflate'' in the metadata was set, contains the deflated content.metadata
Returns a hashref of metadata.key
Retuens the key calculated for this content.Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre