note 119655 added to memcached.ispristine
| From: | vick dot qi at yahoo dot com | Date: | Tue, 26 Jul 2016 15:39:24 +0000 |
| Subject: | note 119655 added to memcached.ispristine | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206108@lists.php.net to get a copy of this message | ||
From the source code of contructor, the "recently" means the connection to server of the
instence is recently created, that is the instance was created without a persistent_id parameter or
the first to use the persistent_id.
For instance, the gives a bool(true):
$memcached = new Memcached();
$isPristine = $memcached->isPristine();
var_dump($isPristine);
This also gives a bool(true):
$memcached = new Memcached('pid1');
$isPristine = $memcached->isPristine();
var_dump($isPristine);
while this gives a bool(false):
$memcached = new Memcached('pid1');
$memcached2 = new Memcached('pid1');
$isPristine = $memcached2->isPristine();
var_dump($isPristine);
----
Server IP: 72.52.91.14
Probable Submitter: 114.240.112.191
----
Manual Page -- http://php.net/manual/en/memcached.ispristine.php
Edit -- https://master.php.net/note/edit/119655
Del: integrated -- https://master.php.net/note/delete/119655/integrated
Del: useless -- https://master.php.net/note/delete/119655/useless
Del: bad code -- https://master.php.net/note/delete/119655/bad+code
Del: spam -- https://master.php.net/note/delete/119655/spam
Del: non-english -- https://master.php.net/note/delete/119655/non-english
Del: in docs -- https://master.php.net/note/delete/119655/in+docs
Del: other reasons-- https://master.php.net/note/delete/119655
Reject -- https://master.php.net/note/reject/119655
Search -- https://master.php.net/manage/user-notes.php