Jifty::CAS::Store - Abstract class for Jifty's Content-Addressed Storage
publish DOMAIN NAME CONTENT METADATA
Publishes the given
CONTENT at the address
METADATA is an arbitrary hash; see Jifty::CAS::Blob for more. Returns the key.
_store DOMAIN NAME BLOB
key DOMAIN NAME
Returns the most recent key for the given pair of
NAME, or undef if none such exists. Subclasses should override this.
retrieve DOMAIN KEY
Returns a Jifty::CAS::Blob for the given pair of
KEY, or undef if none such exists. Subclasses should override this.
uri DOMAIN NAME
Returns a URL where the given
NAME can be accessed.
serve DOMAIN ARGUMENT ENV
Serves a plack request in
ENV, given a
DOMAIN and an
ARGUMENT, which may wither be a key or a name.
This correctly uses the
Etag headers to send HTTP 304 responses to unchanged content. Additionally, the
content_type key in the requested object's metadata is expected to be set and is used for the HTTP response. This method is usually only called by "wrap" in JiftY::CAS, which calls this method as appropriate for requests under
Returns true if the backing store is durable -- that is, if there is a guarantee that data placed there will be accessible from all processes at all later times.