This commit is contained in:
Hamza-Ayed
2026-04-29 01:00:29 +03:00
parent f2ee38ccee
commit 10d69033dd
5 changed files with 33 additions and 5 deletions

10
scratch_test_redis.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
require_once __DIR__ . '/../core/bootstrap.php';
$redis = getRedis(); // or however it's connected in bootstrap
if (!$redis) {
echo "No redis\n"; exit;
}
$redis->geoadd('geo:rides:waiting', 36.0, 32.0, 'test_ride');
$res = $redis->georadius('geo:rides:waiting', 36.0, 32.0, 10, 'km', ['WITHDIST' => true]);
print_r($res);
echo json_encode($res) . "\n";