Alex Vandiver

NAME

Jifty::CAS::Store::LocalFile - A local file backend for Jifty's CAS

DESCRIPTION

This is a local file backend for Jifty::CAS, which provides a durable backend, unlike Jifty::CAS::Store::Memory and Jifty::CAS::Store::Memcached. For more information about Jifty's CAS, see "DESCRIPTION" in Jifty::CAS.

Configuration requires providing a directory which is writable by the web user:

    framework:
      CAS:
        Default:
          Class: 'Jifty::CAS::Store::LocalFile'
          Path: %var/cas%

METHODS

_store DOMAIN NAME BLOB

Stores the BLOB (a Jifty::CAS::Blob) on disk. Returns the key on success or undef on failure.

key DOMAIN NAME

Returns the most recent key for the given pair of DOMAIN and NAME, or undef if none such exists.

retrieve DOMAIN KEY

Returns a Jifty::CAS::Blob for the given pair of DOMAIN and KEY, or undef if none such exists.

durable

Since presumably the files on disk will not simply vanish, the local file store is durable.