]> git.saurik.com Git - redis.git/commitdiff
function to access to Redis command from Lua renamed from r() to redis()
authorantirez <antirez@gmail.com>
Sun, 1 May 2011 10:49:02 +0000 (12:49 +0200)
committerantirez <antirez@gmail.com>
Wed, 25 May 2011 10:32:45 +0000 (12:32 +0200)
src/scripting.c

index bde532ca6f65834a4106d8e7a3a777e88679bb89..d3c18663ffc8a53ad541d0498fcca48a1fca93b1 100644 (file)
@@ -61,7 +61,7 @@ void scriptingInit(void) {
 
     /* Register the 'r' command */
     lua_pushcfunction(lua,luaRedisCommand);
-    lua_setglobal(lua,"r");
+    lua_setglobal(lua,"redis");
 
     /* Create the (non connected) client that we use to execute Redis commands
      * inside the Lua interpreter */