Skip to content

Commit

Permalink
Rename persistent_id to persistentId.
Browse files Browse the repository at this point in the history
The new name is more consistent with other settings in CakePHP.
  • Loading branch information
markstory committed Aug 31, 2013
1 parent 0f9560c commit 9e8c4ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Cake/Cache/Engine/MemcachedEngine.php
Expand Up @@ -73,7 +73,7 @@ public function init($settings = array()) {
'servers' => array('127.0.0.1'),
'compress' => false,
'persistent' => true,
'persistent_id' => 'mc',
'persistentId' => 'mc',
'login' => null,
'password' => null,
);
Expand All @@ -87,7 +87,7 @@ public function init($settings = array()) {
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())) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Cake/Test/Case/Cache/Engine/MemcachedEngineTest.php
Expand Up @@ -98,7 +98,7 @@ public function testSettings() {
'probability' => 100,
'servers' => array('127.0.0.1'),
'persistent' => true,
'persistent_id' => 'mc',
'persistentId' => 'mc',
'compress' => false,
'engine' => 'Memcached',
'login' => null,
Expand Down

0 comments on commit 9e8c4ad

Please sign in to comment.