Skip to content

Add examples of method api calls #5

@jpiulac

Description

@jpiulac

I'm not very familiar with calling Lua scripts in Redis and had trouble getting commands to work.
An easy to follow example might help:

redis> GEOADD Sicily 13.361389 38.115556 "Palermo" 15.087269 37.502669 "Catania"

$ redis-cli SCRIPT LOAD "$(cat geo.lua)"
$ redis-cli EVALSHA fd07... 0 help

The calls I tried below gave me errors. I'm not sure what i'm doing wrong and I tried various combinations but no luck.

$ redis-cli EVALSHA fd07... 0 GEOBEARING Sicily "Catania" "Palermo"
No geoset key name provided 
$ redis-cli EVALSHA fd07... 1 GEODEL Sicily "Catania"
Unknown command SICILY 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions