List Info

Thread: note 78351 added to function.Memcache-get




note 78351 added to function.Memcache-get
user name
2007-10-07 23:50:36
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  -- h
ttps://master.php.net/note/delete/78351/integrated
Del: useless     -- http
s://master.php.net/note/delete/78351/useless
Del: bad code    -- htt
ps://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     -- http
s://master.php.net/note/delete/78351/in+docs
Del: other reasons-- https://mast
er.php.net/note/delete/78351
Reject      -- https://mast
er.php.net/note/reject/78351
Search      -- https://
master.php.net/manage/user-notes.php

-- 
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )