• antirez's avatar
    Scripting: add helper functions redis.error_reply() and redis.status_reply(). · 9c21b72b
    antirez authored
    A previous commit introduced Redis.NIL. This commit adds similar helper
    functions to return tables with a single field set to the specified
    string so that instead of using 'return {err="My Error"}' it is possible
    to use a more idiomatic form:
    
        return redis.error_reply("My Error")
        return redis.status_reply("OK")
    9c21b72b
scripting.c 34.3 KB