Package: libcache-memcached-perl
Version: 1.20-1
Severity: normal

If you have a space in the key, no entry is made in the Memcached
server. Took me a while to figure this out after getting an appalling
number of cache misses...

Having just played with the server directly with telnet, this seems to
be correct behaviour (there doesn't seem to be any way of quoting key
values to allow spaces in them)

I can't think of a way of safely adding support for this without
changing the protocol or breaking other clients, so maybe just adding
something to the documentation warning about this would be sufficient.
There doesn't seem to be anything about this reported anywhere else (a
Google search on "memcached key space" doesn't come up with anything
interesting).

FYI, example code:

#!/usr/bin/perl

use strict;
use Cache::Memcached;

my ($memd, $key);

$memd = new Cache::Memcached{ 'servers' => ['127.0.0.1:11211'], };

$key = 'cow';
$memd->set($key, 'grass');
print "A $key eats ".($memd->get($key) || '{not set}')."\n";

$key = 'spider monkey';
$memd->set($key, 'bananas');
print "A $key eats ".($memd->get($key) || '{not set}')."\n";

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages libcache-memcached-perl depends on:
ii  libstring-crc32-perl          1.4-1      Perl interface for cyclic redundan
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 

libcache-memcached-perl recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to