note 81420 added to function.Memcache-flush

From: Date: Wed, 27 Feb 2008 15:51:17 +0000
Subject: note 81420 added to function.Memcache-flush
Groups: php.notes 
Request: Send a blank email to php-notes+get-136527@lists.php.net to get a copy of this message
More detail on the previous issue (from the memcached mailing list): "The flush has a one second granularity. The flush will expire all items up to the ones set within the same second." It is imperative to wait at least one second after flush() command before further actions like repopulating the cache. Ohterwise new items < 1 second after flush() would be invalidatet instantaneous. Example: <?php $memcache->flush(); $time = time()+1; //one second future while(time() < $time) { //sleep } $memcache->set('key', 'value'); // repopulate the cache ?> ---- Server IP: 212.124.37.9 Probable Submitter: 217.110.94.67 ---- Manual Page -- http://www.php.net/manual/en/function.Memcache-flush.php Edit -- https://master.php.net/note/edit/81420 Del: integrated -- https://master.php.net/note/delete/81420/integrated Del: useless -- https://master.php.net/note/delete/81420/useless Del: bad code -- https://master.php.net/note/delete/81420/bad+code Del: spam -- https://master.php.net/note/delete/81420/spam Del: non-english -- https://master.php.net/note/delete/81420/non-english Del: in docs -- https://master.php.net/note/delete/81420/in+docs Del: other reasons-- https://master.php.net/note/delete/81420 Reject -- https://master.php.net/note/reject/81420 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136527) next »