Changeset 574
- Timestamp:
- 07/02/07 22:56:37 (2 years ago)
- Files:
-
- trunk/api/perl/ChangeLog (modified) (1 diff)
- trunk/api/perl/lib/Cache/Memcached.pm (modified) (1 diff)
- trunk/api/perl/t/all.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/api/perl/ChangeLog
r573 r574 1 * arguments to 'new' constructor can be %hash or $hashref now 2 (previously was only $hashref) 3 1 4 * work around a Perl segfault (Matthieu PATOU <mp@oxado.com>) 2 5 see http://lists.danga.com/pipermail/memcached/2007-June/004511.html trunk/api/perl/lib/Cache/Memcached.pm
r573 r574 65 65 $self = fields::new( $self ) unless ref $self; 66 66 67 my ($args) = @_;67 my $args = (@_ == 1) ? shift : { @_ }; # hashref-ify args 68 68 69 69 $self->set_servers($args->{'servers'}); trunk/api/perl/t/all.t
r272 r574 10 10 Timeout => 3); 11 11 if ($msock) { 12 plan tests => 9;12 plan tests => 10; 13 13 } else { 14 14 plan skip_all => "No memcached instance running at $testaddr\n"; … … 20 20 namespace => "Cache::Memcached::t/$$/" . (time() % 100) . "/", 21 21 }); 22 22 23 23 24 ok($memd->set("key1", "val1"), "set succeeded"); … … 36 37 37 38 38 39 # also make one without a hashref 40 my $mem2 = Cache::Memcached->new( 41 servers => [ ], 42 debug => 1, 43 ); 44 ok($mem2->{debug}, "debug is set on alt constructed instance");
