ePages 6.0 Patch 8 - DE_EPAGES/WebInterface/API/PageCache.pm

Package DE_EPAGES::WebInterface::API::PageCache

Simple LRU cache interface

Example
my $Cache = DE_EPAGES::WebInterface::API::PageCache( MaxPages => 1000 );

if( $Cache->exists( $Key ) ) {
    return $Cache->get( $Key );
}
else {
    my $Content = GetContent( $Key );
    $Cache->store( $Key, $Content );
    return $Content;
}