It is mainly used to support the faster development of RedisModule, mainly based on RedisTimeSeries.
You can expect from each sample:
- Create a module
- Create a Redis command
- Write specific test cases
git clone https://github.com/artikell/RedisModuleExample
cd <any-sample-folder>
git submodule update --init --recursive
make & make test
- Alternatively, running the sample
Create your own module through unified commands:
git clone https://github.com/artikell/RedisModuleExample <new-module-name>
cd <new-module-name>
sed -i 's/redis_module_example/<new-module-name>/g' src/Makefile
git submodule update --init --recursive
git remote set-url origin <your-repo-path>
The module includes a basic set of unit tests and integration tests.
Unit tests
To run all unit tests, follow these steps:
$ make unit_tests