mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fixed redis connection init
This commit is contained in:
+1
-2
@@ -166,8 +166,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', '', 2.5),
|
||||
App::getEnv('_APP_REDIS_PORT', ''));
|
||||
$redis->pconnect(App::getEnv('_APP_REDIS_HOST', ''), App::getEnv('_APP_REDIS_PORT', ''));
|
||||
|
||||
return $redis;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user