Rename persistent_id to persistentId.

The new name is more consistent with other settings in CakePHP.
This commit is contained in:
mark_story 2013-08-31 13:15:53 -04:00
parent 0f9560c5cf
commit 9e8c4ad285
2 changed files with 3 additions and 3 deletions

View file

@ -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())) {

View file

@ -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,