The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WebSource::Cache : saves a copy of the data into a file and forwards it

DESCRIPTION

A Cache operator allows to save the data objects which pass thru it into seperate files. Such an operator is described by a DOM Node having the following form :

<ws:cache name="opname" directory="dir" template="temp-XXXXX" forward-to="ops" />

The forward-to and name attributes have there usual signification.

The directory attribut allows to determine which directory is to be used to store the cached files. The template gives the naming template for the cached files (A substring of fives X's is replaced by a number).

SYNOPSIS

  $cache = WebSource::Cache->new(wsnode => $node);

  # for the rest it works as a WebSource::Module

METHODS

$source = WebSource->new(desc => $node);

Create a new Cache module;

$cache->handle($env);

Saves the envelopes data into a file

SEE ALSO

WebSource::Module