note 78351 deleted from function.Memcache-get by tularis
| From: | tularis@php.net | Date: | Sun, 29 Jun 2008 21:23:31 +0000 |
| Subject: | note 78351 deleted from function.Memcache-get by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-140989@lists.php.net to get a copy of this message | ||
Note Submitter: nate at mailinator dot com
----
Just a warning: the PHP Memcache class completely breaks the second you try to get() a key that was
not set by the PHP Memcache class. Specifically, if any flags are present on an entry in Memcache,
PHP doesn't know what to do and will close your connection to the cache.
Took me quite a while to find out why I kept losing my connection to Memcache; of course, it's
because I was trying to get() memcache keys that had flags=30 set.
Lesson: stick to writing your own customized memcache class that connects via tcp and deals with
flags the way you want them dealt with.