WebSource::Cache : saves a copy of the data into a file and forwards it
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.
forward-to
name
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).
directory
template
$cache = WebSource::Cache->new(wsnode => $node); # for the rest it works as a WebSource::Module
Create a new Cache module;
Saves the envelopes data into a file
WebSource::Module
To install WebSource, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebSource
CPAN shell
perl -MCPAN -e shell install WebSource
For more information on module installation, please visit the detailed CPAN module installation guide.