Update: 2026-07-05 18:23:55
This commit is contained in:
@@ -11,6 +11,16 @@ use Firebase\JWT\BeforeValidException;
|
||||
$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)
|
||||
* @param $redis Client : اتصال الريدز
|
||||
|
||||
Reference in New Issue
Block a user