diff options
author | guybe7 <guy.benoish@redislabs.com> | 2021-12-16 11:54:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-16 12:54:40 +0200 |
commit | ffbe36fc3ee824407b3818c0a6f861176ce56482 (patch) | |
tree | 3bd995b4a40c92c193e6dd39046c1d5017f9aff4 /README.md | |
parent | 70ff26b454357c4fdf77ff2cec31380ad3a32f40 (diff) | |
download | redis-ffbe36fc3ee824407b3818c0a6f861176ce56482.tar.gz |
Command table: Sorted subcommands (#9951)
Sort the sub-commands so that every time we execute the script it generates the exact same results.
This will case less merge conflicts if two PRs edit different json files.
also:
* make the script agnostic to where it is executed (more flexible).
* add documentation about commands.c and the json files in the readme.
Co-authored-by: Oran Agra <oran@redislabs.com>
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -362,6 +362,12 @@ Inside server.c you can find code that handles other vital things of the Redis s * `performEvictions()` is called when a new write command should be performed but Redis is out of memory according to the `maxmemory` directive. * The global variable `redisCommandTable` defines all the Redis commands, specifying the name of the command, the function implementing the command, the number of arguments required, and other properties of each command. +commands.c +--- +This file is auto generated by utils/generate-command-code.py, the content is based on the JSON files in the src/commands folder. +These are meant to be the single source of truth about the Redis commands, and all the metadata about them. +These JSON files are not meant to be used directly by anyone directly, instead that metadata can be obtained via the COMMAND command. + networking.c --- |