Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

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

Attributes

cache
       The Chi cache object

Author

       Dave Cross, <dave@perlhacks.com>

Description

       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.

Name

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

Synopsis

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

          $perlanet->run;

See Also