note 100023 added to memcache.replace

From: Date: Mon, 20 Sep 2010 22:57:41 +0000
Subject: note 100023 added to memcache.replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-172720@lists.php.net to get a copy of this message
This page mentions that replace should be used rather than set, but gives no reason. Best information I could find was a comment by 'argyleblanket' on the set page. (http://www.php.net/manual/en/memcache.set.php#84032) "Using set more than once for the same key seems to have unexpected results - it does not behave as a "replace," but instead seems to "set" more than one value for the same key. "get" may return any of the values. This was tested on a multiple-server setup - behaviour may be different if you only have one server. " ---- Server IP: 69.147.83.197 Probable Submitter: 216.197.228.25 ---- Manual Page -- http://www.php.net/manual/en/memcache.replace.php Edit -- https://master.php.net/note/edit/100023 Del: integrated -- https://master.php.net/note/delete/100023/integrated Del: useless -- https://master.php.net/note/delete/100023/useless Del: bad code -- https://master.php.net/note/delete/100023/bad+code Del: spam -- https://master.php.net/note/delete/100023/spam Del: non-english -- https://master.php.net/note/delete/100023/non-english Del: in docs -- https://master.php.net/note/delete/100023/in+docs Del: other reasons-- https://master.php.net/note/delete/100023 Reject -- https://master.php.net/note/reject/100023 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#172720) next »