Changeset 796
- Timestamp:
- 11/24/08 22:45:52 (12 months ago)
- Files:
-
- 1 modified
-
trunk/api/perl/lib/Cache/Memcached.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/api/perl/lib/Cache/Memcached.pm
r795 r796 19 19 use Errno qw( EINPROGRESS EWOULDBLOCK EISCONN ); 20 20 use Cache::Memcached::GetParser; 21 use Carp qw(carp croak); 21 22 use fields qw{ 22 23 debug no_rehash stats compress_threshold compress_enable stat_callback … … 442 443 my Cache::Memcached $self = shift; 443 444 my ($key, $val, $exptime) = @_; 444 $val = ''unless (defined $val);445 carp "value for memkey:$key is not defined" unless (defined $val); 445 446 return 0 if ! $self->{'active'} || $self->{'readonly'}; 446 447 my $stime = Time::HiRes::time() if $self->{'stat_callback'};
