Update: 2026-07-05 18:23:55

This commit is contained in:
Hamza-Ayed
2026-07-05 18:23:55 +03:00
parent 9b0f0de1ce
commit d7c5eefe71
+10
View File
@@ -11,6 +11,16 @@ use Firebase\JWT\BeforeValidException;
$INTERNAL_KEY = function_exists('getInternalSocketKey') ? getInternalSocketKey() : ''; $INTERNAL_KEY = function_exists('getInternalSocketKey') ? getInternalSocketKey() : '';
/**
* Helper to get the global Redis connection defined in bootstrap.php
*/
if (!function_exists('getRedisConnection')) {
function getRedisConnection() {
global $redis;
return $redis;
}
}
/** /**
* دالة البحث الهجين (Redis + MySQL) * دالة البحث الهجين (Redis + MySQL)
* @param $redis Client : اتصال الريدز * @param $redis Client : اتصال الريدز