mirror of
https://github.com/friendica/friendica
synced 2025-04-24 04:30:11 +00:00
Improve redis configuration
- basic authentication - switch database (0 - 15)
This commit is contained in:
parent
048501be34
commit
fa71a9a0ce
3 changed files with 27 additions and 5 deletions
|
@ -22,6 +22,16 @@ class RedisCacheDriverTest extends MemoryCacheTest
|
|||
->with('system', 'redis_port')
|
||||
->andReturn(null);
|
||||
|
||||
$this->configMock
|
||||
->shouldReceive('get')
|
||||
->with('system', 'redis_db')
|
||||
->andReturn(3);
|
||||
|
||||
$this->configMock
|
||||
->shouldReceive('get')
|
||||
->with('system', 'redis_password')
|
||||
->andReturn(null);
|
||||
|
||||
$this->cache = CacheDriverFactory::create('redis');
|
||||
return $this->cache;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue