Changeset 8525

Show
Ignore:
Timestamp:
03/30/08 23:28:25 (5 years ago)
Author:
daisuke
Message:

lang/perl/Cache-Memcached-libmemcached; Add hashing_algorithm/distribution_method docs and tests

Location:
lang/perl/Cache-Memcached-libmemcached/trunk
Files:
2 added
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Cache-Memcached-libmemcached/trunk/lib/Cache/Memcached/libmemcached.pm

    r8524 r8525  
    7474    # behavior options 
    7575    $self->set_no_block( $args->{no_block} ) if exists $args->{no_block}; 
     76    $self->set_hashing_algorithm( $args->{hashing_algorithm} ) if exists $args->{hashing_algorithm}; 
     77    $self->set_distribution_method( $args->{distribution_method} ) if exists $args->{distribution_method}; 
    7678 
    7779    return $self; 
     
    251253  use Cache::Memcached::libmemcached qw(MEMCACHED_DISTRIBUTION_CONSISTENT); 
    252254  $memd->set_distribution_method(MEMCACHED_DISTRIBUTION_CONSISTENT()); 
    253    
     255 
     256  # Extra constructor options that are not in Cache::Memcached 
     257  # See Memcached::libmemcached::constants for a list of available options 
     258  my $memd = Cache::Memcached::libmemcached->new({ 
     259    ..., 
     260    no_block            => $boolean, 
     261    distribution_method => $distribution_method, 
     262    hashing_algorithm   => $hashing_algorithm, 
     263  }); 
    254264 
    255265=head1 DESCRIPTION