Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide a "First Class" API for Lua Scripting #44

Closed
Mordil opened this issue Jun 5, 2019 · 1 comment
Closed

Provide a "First Class" API for Lua Scripting #44

Mordil opened this issue Jun 5, 2019 · 1 comment

Comments

@Mordil
Copy link
Collaborator

Mordil commented Jun 5, 2019

I'm opening this up for discussion of what people may want to do with Lua scripting integration through the Swift client against Redis.

The list of supported commands: https://redis.io/commands#scripting

@vegiwoo
Copy link

vegiwoo commented Jun 5, 2019

I encountered the following scenario - in Redis I create geosets added by GEOADD, besides there are user attention zones (added by ZADD [geoset] 0 user:{id}:att_zone) and event location locations (added by ZADD [geoset] 0 activity:{id}:location). When adding a new event on ZRANGE [geoset] 0 -1 I get all the entities of this geostet and filter only the attention zones (user:{id}:att_zone), then for each found attention zone I want to perform GEORADIUS [geoset] [attention zone] [radius] km to see if the event created is in the attention zone of a specific user, and if so, I inform the user about a new event in his attention zone. In Swift code, this is quite a complex call chain for me and I would like to try writing a script for this task.

@Mordil Mordil closed this as completed Mar 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants