The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Memcached::Client::Selector - Abstract Base Class For Memcached::Client Selector

VERSION

version 1.02

SYNOPSIS

  package NewHash;
  use strict;
  use base qw{Memcached::Client::Selector};

METHODS

new

new() builds a new object. It takes no parameters.

set_servers

set_servers() will initialize the selector from the arrayref of servers (or server => weight tuples) passed to it.

get_server

get_server() will use the object's list of servers to extract the proper server name from the list of connected servers, so the protocol object can use it to make a request.

This routine can return undef, if called before set_servers has been called, whether explicitly, or implicitly by handling a list of servers to the constructor.

AUTHOR

Michael Alan Dorman <mdorman@ironicdesign.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Michael Alan Dorman.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.