note 78351 added to function.Memcache-get

From: Date: Mon, 08 Oct 2007 04:50:36 +0000
Subject: note 78351 added to function.Memcache-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-131218@lists.php.net to get a copy of this message
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. ---- Server IP: 69.147.83.197 Probable Submitter: 66.130.239.101 ---- Manual Page -- http://www.php.net/manual/en/function.Memcache-get.php Edit -- https://master.php.net/note/edit/78351 Del: integrated -- https://master.php.net/note/delete/78351/integrated Del: useless -- https://master.php.net/note/delete/78351/useless Del: bad code -- https://master.php.net/note/delete/78351/bad+code Del: spam -- https://master.php.net/note/delete/78351/spam Del: non-english -- https://master.php.net/note/delete/78351/non-english Del: in docs -- https://master.php.net/note/delete/78351/in+docs Del: other reasons-- https://master.php.net/note/delete/78351 Reject -- https://master.php.net/note/reject/78351 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131218) next »