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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

2 Comments

Thanks a lot, Josh, is there a way or workaround to execute the query above for 1000 geofences at one request?
Not that I can think of.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.