1

How can I send a raw command to Redis using the PHP predis package

$client->executeRaw('INTERSECTS vehicle LIMIT 1000 GET geofence geofence_id');

is it something applicable

Judge Jules
  • 173
  • 10

1 Answers1

2

You'll need to make your command an array.

$client->executeRaw(['INTERSECTS', 'vehicle', 'LIMIT', '1000', 'GET', 'geofence', 'geofence_id']);

See https://github.com/predis/predis#adding-new-commands for more information.

tidwall
  • 6,881
  • 2
  • 36
  • 47