Tools, utilities and scripts to help you write redis modules!
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.
 
 
 
Ricter Zheng f9cca77eba
Update README.md
5 years ago
rmutil fix tests file and remove the string parsing 5 years ago
src remove 5 years ago
.clang-format Add clang-format 7 years ago
.gitignore removed zmalloc as a dependency, and updated the vector to use size_t 9 years ago
LICENSE Initial commit 9 years ago
Makefile remove some files 5 years ago
README.md Update README.md 5 years ago
redismodule.h Update redismodule.h to redis5.0 version 6 years ago

README.md

RedisModules-ExecuteCommand

Quick Start Guide

Here's what you need to do to build your first module:

  1. Build Redis in a build supporting modules.
  2. Build librmutil and the module by running make. (you can also build them seperatly by running make in their respective dirs)
  3. 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>

Enjoy!