keys with spaces in
Wed, 29 Oct 2003 11:37:44 -0500
That API has a ton of problems -- it was a direct port from Perl and was
never completely debugged. Use the newer one written by Ryan Dean -- it
works much better, and is about 40% faster than the original API.
As far as I know, keys aren't supposed to have spaces; the API could check
for them -- but that would add another speed degredation... I think that
should be the responsibility of the code calling the API -- not the API
To check things out; I added a str_replace to strip spaces from keys into
the 0.1.1 API ... on my site, it slowed the memcached system down about
4%... a pretty big speed hit just to catch programmer mistakes.
----- Original Message -----
From: "Richard Jones" <email@example.com>
Sent: Wednesday, October 29, 2003 10:34 AM
Subject: keys with spaces in
> i'm using Ryan Gilfethers php api, v 1.0.10.
> tried to use some keys with spaces in, didn't work.
> (because spaces used to delimit commands when sent to memcached)
> added a str_replace command to set and get functions of the api to remove
> spaces from keys.
> not sure if other apis do this, i reckon it's a good idea, or should at
> be an option?