This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
litespeed_wiki:lsmcd:sasl [2018/08/13 19:16]
Robert Perper [Enable SASL in Your Configuration File]
litespeed_wiki:lsmcd:sasl [2019/02/25 13:32] (current)
Robert Perper [Configure for PHP]
Line 53: Line 53:
 <?php <?php
 $mem_var = new Memcached();​ $mem_var = new Memcached();​
-$mem_var->​setSaslAuthData('​user',​ '​password'​);​ 
 $mem_var->​setOption(Memcached::​OPT_BINARY_PROTOCOL,​ true); $mem_var->​setOption(Memcached::​OPT_BINARY_PROTOCOL,​ true);
 $mem_var->​setOption(Memcached::​OPT_COMPRESSION,​ false); $mem_var->​setOption(Memcached::​OPT_COMPRESSION,​ false);
 $mem_var->​addServer("​",​ 11211); $mem_var->​addServer("​",​ 11211);
 +$mem_var->​setSaslAuthData('​user',​ '​password'​);​
 $response = $mem_var->​get("​SampleKey"​);​ $response = $mem_var->​get("​SampleKey"​);​
 if ($response) { if ($response) {
  • Admin
  • Last modified: 2019/02/25 13:32
  • by Robert Perper