note 115612 added to memcache.getversion
| From: | b dot willemsen8 at gmail dot com | Date: | Tue, 26 Aug 2014 13:16:33 +0000 |
| Subject: | note 115612 added to memcache.getversion | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200312@lists.php.net to get a copy of this message | ||
I also use this method to verify that Memcache is properly configured on the server since it returns
false if there is something wrong. So you can do something like this:
<?php
$memcache = new Memcache;
if ($memcache->getVersion() === false) {
throw new Exception('Please, verify the Memcache configuration');
}
----
Server IP: 72.52.91.14
Probable Submitter: 46.129.104.59
----
Manual Page -- http://php.net/manual/en/memcache.getversion.php
Edit -- https://master.php.net/note/edit/115612
Del: integrated -- https://master.php.net/note/delete/115612/integrated
Del: useless -- https://master.php.net/note/delete/115612/useless
Del: bad code -- https://master.php.net/note/delete/115612/bad+code
Del: spam -- https://master.php.net/note/delete/115612/spam
Del: non-english -- https://master.php.net/note/delete/115612/non-english
Del: in docs -- https://master.php.net/note/delete/115612/in+docs
Del: other reasons-- https://master.php.net/note/delete/115612
Reject -- https://master.php.net/note/reject/115612
Search -- https://master.php.net/manage/user-notes.php