Permalink
Browse files

Rename persistent_id to persistentId.

The new name is more consistent with other settings in CakePHP.
  • Loading branch information...
1 parent 0f9560c commit 9e8c4ad285af1a60e0d1b2067bcd539a950b1cb7 @markstory markstory committed Aug 31, 2013
@@ -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,
);
@@ -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())) {
@@ -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,

0 comments on commit 9e8c4ad

Please sign in to comment.