Changeset 820
- Timestamp:
- 08/29/09 01:57:27 (3 months ago)
- Location:
- trunk/api/perl
- Files:
-
- 1 added
- 1 modified
-
lib/Cache/Memcached.pm (modified) (2 diffs)
-
t/06_utf8_key.t (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/api/perl/lib/Cache/Memcached.pm
r818 r820 19 19 use Errno qw( EINPROGRESS EWOULDBLOCK EISCONN ); 20 20 use Cache::Memcached::GetParser; 21 use Encode (); 21 22 use fields qw{ 22 23 debug no_rehash stats compress_threshold compress_enable stat_callback … … 548 549 my $r = $self->get_multi($key); 549 550 my $kval = ref $key ? $key->[1] : $key; 551 552 # key reconstituted from server won't have utf8 on, so turn it off on input 553 # scalar to allow hash lookup to succeed 554 Encode::_utf8_off($kval) if Encode::is_utf8($kval); 555 550 556 return $r->{$kval}; 551 557 }
