Merge pull request #481 from appwrite/redis-timeout

Added connection limit
This commit is contained in:
Eldad A. Fux 2020-07-21 09:08:31 +03:00 committed by GitHub
commit d76cfc630a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;