note 119655 deleted from memcached.ispristine by cmb
| From: | cmb@php.net | Date: | Tue, 26 Jul 2016 15:43:50 +0000 |
| Subject: | note 119655 deleted from memcached.ispristine by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-206110@lists.php.net to get a copy of this message | ||
Note Submitter: vick dot qi at yahoo dot com
----
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);