Merge pull request #4884 from cakephp/issue-4876

Add default prefix to RedisEngine
This commit is contained in:
José Lorenzo Rodríguez 2014-10-15 15:26:01 +02:00
commit 923e1c5300
2 changed files with 2 additions and 1 deletions

View file

@ -59,7 +59,7 @@ class RedisEngine extends CacheEngine {
}
parent::init(array_merge(array(
'engine' => 'Redis',
'prefix' => null,
'prefix' => Inflector::slug(APP_DIR) . '_',
'server' => '127.0.0.1',
'database' => 0,
'port' => 6379,

View file

@ -77,6 +77,7 @@ class RedisEngineTest extends CakeTestCase {
'persistent' => true,
'password' => false,
'database' => 0,
'unix_socket' => false,
);
$this->assertEquals($expecting, $settings);
}