phpCA client

Tim Yardley liquid@haveheart.com
Wed, 31 Dec 2003 21:20:33 -0600


The benefit to returning the php NULL constant in this case is that it
differs from '\0', so you could actually store a null in memcached (assuming
the server would store it).  It seems to be the universal solution for PHP,
but then again, it may not apply in the same way to other languages.

/tmy

-----Original Message-----
From: memcached-admin@lists.danga.com
[mailto:memcached-admin@lists.danga.com] On Behalf Of Evan Martin
Sent: Wednesday, December 31, 2003 2:54 PM
To: Justin
Cc: 'Tim Yardley'; memcached@lists.danga.com
Subject: Re: phpCA client

On Wed, Dec 31, 2003 at 03:44:04PM -0500, Justin wrote:
> I wrote a wrapper around the memcached API that actually translates TRUE
and
> FALSE into the words "!TRUE!" and "!FALSE!" before sending them out.  When
> it retrieves, it returns a NULL if it gets a FALSE, or a FALSE if it gets
a
> !FALSE!. 

Well, that only works until you want to store the strings "!TRUE!" and
"!FALSE!", doesn't it?  :)

-- 
Evan Martin
martine@danga.com
http://neugierig.org