Query: jifty::cas::blob
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Jifty::CAS::Blob(3pm) User Contributed Perl Documentation Jifty::CAS::Blob(3pm)NAMEJifty::CAS::Blob - An object in Jifty's content-addressed storeSYNOPSISmy $blob = Jifty::CAS->retrieve('js', $key); my $content = $blob->content; my $meta = $blob->metadata; my $key = $blob->key;DESCRIPTIONObjects in the content-addressed store can have arbitrary metadata associated with them, in addition to storing their contents.METHODSnew 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. content Returns the content of the blob. metadata Returns a hashref of metadata. key Returns the key calculated for this content. perl v5.14.2 2010-12-08 Jifty::CAS::Blob(3pm)