]> git.saurik.com Git - redis.git/blobdiff - src/scripting.c
function to access to Redis command from Lua renamed from r() to redis()
[redis.git] / 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 */