Gungho::Component::RobotRules::Storage::DB_File - DB_File Storage For RobotRules


Gungho documentation  | view source Contained in the Gungho distribution.

Index


NAME

Top

Gungho::Component::RobotRules::Storage::DB_File - DB_File Storage For RobotRules

SYNOPSIS

Top

  # In your config
  components:
    - RobotRules
  robot_rules:
    storage:
      module: DB_File
      config:
        filename: '/path/to/storage.db'

  # or elsewhere in your code
  use Gungho::Component::RobotRules::Storage::DB_File;

  my $storage = Gungho::Component::RobotRules::Storage::DB_File->new(
    config => {
      filename => '/path/to/storage.db'
    }
  );

METHODS

Top

setup

get_rule

put_rule

get_pending_robots_txt

push_pending_robots_txt


Gungho documentation  | view source Contained in the Gungho distribution.