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; } |