mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
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:
commit
7bd0a3b32b
1 changed files with 1 additions and 0 deletions
|
@ -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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue