Merge pull request #5307 from shin1x1/add-binary-option-in-memcached-engine

SASL with Memcached is only supported with binary protocol
This commit is contained in:
Mark Story 2014-12-02 11:01:03 -05:00
commit 7bd0a3b32b

View file

@ -130,6 +130,7 @@ class MemcachedEngine extends CacheEngine {
__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']);
}