Merge pull request #481 from appwrite/redis-timeout

Added connection limit
This commit is contained in:
Eldad A. Fux authored and GitHub committed 2020-07-21 09:08:31 +03:00
commit d76cfc630a
1 file changed
+1 -1
+1 -1
View File
@@ -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;