Jifty::CAS::Blob(3pm)

Jifty::CAS::Blob3pm

An object in jifty's content-addressed store

Usage

  my $blob = Jifty::CAS->retrieve('js', $key);
  my $content = $blob->content;
  my $meta = $blob->metadata;
  my $key = $blob->key;

Overview

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.

content

Returns the content of the blob.

metadata

Returns a hashref of metadata.

key

Returns the key calculated for this content.

Releases

2 releases since Debian 6.0 (Squeeze); the text changed 1 time.

  1. 6.0
  2. 7

From libjifty-perl 1.10518+dfsg-2 in Debian 7 (Wheezy). Parsed by carta from the page's man source.