]> git.saurik.com Git - redis.git/commit
Scripting: add helper functions redis.error_reply() and redis.status_reply().
authorantirez <antirez@gmail.com>
Fri, 28 Sep 2012 14:54:57 +0000 (16:54 +0200)
committerantirez <antirez@gmail.com>
Fri, 28 Sep 2012 14:54:57 +0000 (16:54 +0200)
commit9c21b72bb9b7844b22b60f63af37aa30dd78f898
tree4d27b67bb7384873199f9eae2dc3cd9d704c6dc8
parent6dd1693c0e4bfae0ca0983b2a0bf70ae234a6bcb
Scripting: add helper functions redis.error_reply() and redis.status_reply().

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")
src/scripting.c