Jifty::CAS::Blob - An object in Jifty's content-addressed store
my $blob = Jifty::CAS->retrieve('js', $key); my $content = $blob->content; my $meta = $blob->metadata; my $key = $blob->key;
Objects in the content-addressed store can have arbitrary metadata associated with them, in addition to storing their contents.
Takes a HASHREF, with possible keys "content" and "metadata", and creates a new object. Possible special keys in the metadata include:
Provides the data to hash to generate the address. If no hash_with is provided, the content itself is hashed.
hash_with
Returns the content of the blob.
Returns a hashref of metadata.
Returns the key calculated for this content.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.