note 110988 added to book.memcached
| From: | davidt | Date: | Thu, 03 Jan 2013 13:14:38 +0000 |
| Subject: | note 110988 added to book.memcached | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192742@lists.php.net to get a copy of this message | ||
The module also supports SASL authentication, it just isn't documented sadly. You'll need
to run the following code:
<?php
$m = new Memcached();
$m->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
$m->setSaslAuthData("user-1", "pass");
?>
You need to enable the "memcached.use_sasl = 1" ini option for memcached in the php.ini
file.
----
Server IP: 113.20.13.217
Probable Submitter: 220.239.225.249
----
Manual Page -- http://php.net/manual/en/book.memcached.php
Edit -- https://master.php.net/note/edit/110988
Del: integrated -- https://master.php.net/note/delete/110988/integrated
Del: useless -- https://master.php.net/note/delete/110988/useless
Del: bad code -- https://master.php.net/note/delete/110988/bad+code
Del: spam -- https://master.php.net/note/delete/110988/spam
Del: non-english -- https://master.php.net/note/delete/110988/non-english
Del: in docs -- https://master.php.net/note/delete/110988/in+docs
Del: other reasons-- https://master.php.net/note/delete/110988
Reject -- https://master.php.net/note/reject/110988
Search -- https://master.php.net/manage/user-notes.php