Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
00b7541b
Commit
00b7541b
authored
May 01, 2011
by
antirez
Browse files
function to access to Redis command from Lua renamed from r() to redis()
parent
7b722727
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
00b7541b
...
@@ -61,7 +61,7 @@ void scriptingInit(void) {
...
@@ -61,7 +61,7 @@ void scriptingInit(void) {
/* Register the 'r' command */
/* Register the 'r' command */
lua_pushcfunction
(
lua
,
luaRedisCommand
);
lua_pushcfunction
(
lua
,
luaRedisCommand
);
lua_setglobal
(
lua
,
"r"
);
lua_setglobal
(
lua
,
"r
edis
"
);
/* Create the (non connected) client that we use to execute Redis commands
/* Create the (non connected) client that we use to execute Redis commands
* inside the Lua interpreter */
* inside the Lua interpreter */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment