mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
Merge pull request #481 from appwrite/redis-timeout
Added connection limit
This commit is contained in:
commit
d76cfc630a
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ $register->set('statsd', function () { // Register DB connection
|
|||
});
|
||||
$register->set('cache', function () { // Register cache connection
|
||||
$redis = new Redis();
|
||||
$redis->pconnect(App::getEnv('_APP_REDIS_HOST', ''),
|
||||
$redis->pconnect(App::getEnv('_APP_REDIS_HOST', '', 2.5),
|
||||
App::getEnv('_APP_REDIS_PORT', ''));
|
||||
|
||||
return $redis;
|
||||
|
|
|
|||
Loading…
Reference in a new issue