add binary protocol option in MemcachedEngine

This commit is contained in:
shin1x1 2014-12-02 19:56:30 +09:00
parent bbfe3170dc
commit a5843dbe87

View file

@ -130,6 +130,7 @@ class MemcachedEngine extends CacheEngine {
__d('cake_dev', 'Memcached extension is not build with SASL support') __d('cake_dev', 'Memcached extension is not build with SASL support')
); );
} }
$this->_Memcached->setOption(Memcached::OPT_BINARY_PROTOCOL, true);
$this->_Memcached->setSaslAuthData($this->settings['login'], $this->settings['password']); $this->_Memcached->setSaslAuthData($this->settings['login'], $this->settings['password']);
} }