Added connection limit

This commit is contained in:
Eldad Fux
2020-07-21 08:47:32 +03:00
parent 0691057d55
commit 9219c8ee00
+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;