Search::Sitemap::URLStore - Abstract base class for Search::Sitemap URL stores


Search-Sitemap documentation Contained in the Search-Sitemap distribution.

Index


Code Index:

NAME

Top

Search::Sitemap::URLStore - Abstract base class for Search::Sitemap URL stores

DESCRIPTION

Top

METHODS

Top

put( @urls )

Add one or more Search::Sitemap::URL objects to the URL store.

get( $url )

Retrieve a Search::Sitemap::URL object from the URL store.

all

Return all the Search::Sitemap::URL objects from the URL store.

SEE ALSO

Top

Search::Sitemap

Search::Sitemap::URLStore::Memory

AUTHOR

Top

Jason Kohles, <email@jasonkohles.com>

COPYRIGHT AND LICENSE

Top


Search-Sitemap documentation Contained in the Search-Sitemap distribution.

package Search::Sitemap::URLStore;
use strict; use warnings;
our $VERSION = '2.13';
our $AUTHORITY = 'cpan:JASONK';
use Moose;
use Class::Trigger;
use Carp qw( croak );
use namespace::clean -except => [qw( meta add_trigger call_trigger )];

after 'put' => sub {
    my $self = shift;
    $self->call_trigger( put => @_ );
};

sub put { croak "Abstract method 'put' called" }
sub get { croak "Abstract method 'get' called" }
sub all { croak "Abstract method 'all' called" }

__PACKAGE__->meta->make_immutable;
1;