GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GUNGHOX::FOLLOWLINKS::RULE::FRESH (3)

.ds Aq ’

NAME

GunghoX::FollowLinks::Rule::Fresh - Only Follow Fresh Links

CONTENTS

SYNOPSIS



  use GunghoX::FollowLinks::Rule::Fresh;
  my $rule = GunghoX::FollowLinks::Rule::Fresh->new(
    storage => {
      module => "Memory",
    }
  );
  $rule->apply( $c, $response, $url, $attrs );



DESCRIPTION

This rule allows you to follow links thatyou haven’t seen yet. The list of URLs that have been fetched are stored in a storage module of your choise.

If you want to put it in a memcached instance, for example, you can specify it like this:



  my $rule = GunghoX::FollowLinks::Rule::Fresh->new(
    storage => {
      module => "Cache",
      config => {
        cache => {
          module => "Cache::Memcached",
          config => {
            servers => "127.0.0.1:11211",
            compress_threshold => 10_000,
          }
        }
      }
    }
  );



METHODS

    new

Creates a new rule instance. You must specify the storage backend.

    apply

Applies the rule.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 GUNGHOX::FOLLOWLINKS::RULE::FRESH (3) 2008-01-29

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.