mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Rename persistent_id to persistentId.
The new name is more consistent with other settings in CakePHP.
This commit is contained in:
parent
0f9560c5cf
commit
9e8c4ad285
2 changed files with 3 additions and 3 deletions
|
@ -73,7 +73,7 @@ class MemcachedEngine extends CacheEngine {
|
|||
'servers' => array('127.0.0.1'),
|
||||
'compress' => false,
|
||||
'persistent' => true,
|
||||
'persistent_id' => 'mc',
|
||||
'persistentId' => 'mc',
|
||||
'login' => null,
|
||||
'password' => null,
|
||||
);
|
||||
|
@ -87,7 +87,7 @@ class MemcachedEngine extends CacheEngine {
|
|||
return true;
|
||||
}
|
||||
|
||||
$this->_Memcached = new Memcached($this->settings['persistent'] ? $this->settings['persistent_id'] : null);
|
||||
$this->_Memcached = new Memcached($this->settings['persistent'] ? $this->settings['persistentId'] : null);
|
||||
$this->_setOptions();
|
||||
|
||||
if (count($this->_Memcached->getServerList())) {
|
||||
|
|
|
@ -98,7 +98,7 @@ class MemcachedEngineTest extends CakeTestCase {
|
|||
'probability' => 100,
|
||||
'servers' => array('127.0.0.1'),
|
||||
'persistent' => true,
|
||||
'persistent_id' => 'mc',
|
||||
'persistentId' => 'mc',
|
||||
'compress' => false,
|
||||
'engine' => 'Memcached',
|
||||
'login' => null,
|
||||
|
|
Loading…
Reference in a new issue