function to access to Redis command from Lua renamed from r() to redis()

This commit is contained in:
antirez 2011-05-01 12:49:02 +02:00
parent 7b72272790
commit 00b7541b21

View 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 */