Cache::YAMLBackend -- a filesystem based YAML persistance mechanism



NAME

Cache::YAMLBackend -- a filesystem based YAML persistance mechanism


DESCRIPTION

The YAMLBackend class is used to persist data to the filesystem as YAML, based on Cache::FileBackend.


SYNOPSIS

  my $backend = new Cache::YAMLBackend( '/tmp/FileCache', 3, 000 );
  See Cache::FileBackend for the usage synopsis.
  $backend->store( 'namespace', 'foo', 'bar' );
  my $bar = $backend->restore( 'namespace', 'foo' );
  my $size_of_bar = $backend->get_size( 'namespace', 'foo' );
  foreach my $key ( $backend->get_keys( 'namespace' ) )
  {
    $backend->delete_key( 'namespace', $key );
  }
  foreach my $namespace ( $backend->get_namespaces( ) )
  {
    $backend->delete_namespace( $namespace );
  }

See Cache::FileBackend for the API documentation.


SEE ALSO

Cache::Backend, Cache::FileBackend


AUTHOR

Original author: Michael Nachbaur <mike@nachbaur.com>

Last author: $Author: nachbaur $

Copyright (C) 2005 Michael Nachbaur