DOKK / manpages / debian 12 / libperlanet-perl / Perlanet::Trait::Cache.3pm.en
Perlanet::Trait::Cache(3pm) User Contributed Perl Documentation Perlanet::Trait::Cache(3pm)

Perlanet::Trait::Cache - cache feeds with CHI

   my $perlanet = Perlanet->new_with_traits(
      traits => [ 'Perlanet::Trait::Cache' ]
   );
   $perlanet->run;

Every time a page is fetched it is cached first through CHI. This allows you to cache pages to a local disk for example, if the feed has not changed.

The Chi cache object

Dave Cross, <dave@perlhacks.com>

Copyright (c) 2010 by Magnum Solutions Ltd.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

2023-02-21 perl v5.36.0