mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
59 lines
1.7 KiB
Plaintext
59 lines
1.7 KiB
Plaintext
# CustomCommand section must be defined before Latency monitor to support all commands
|
|
#
|
|
# NOTE: only support maximum 16 custom commands
|
|
|
|
CustomCommand {
|
|
# from redis source src/modules/hello.c
|
|
# hello.push.native key value
|
|
hello.push.native { # name of command, must be lowercase.
|
|
# key parameter is located at first argument. i.e. command key ...
|
|
# Currently support only 1 key with first argument.
|
|
minArgs 3 # minimum arguments(including command itself), default is 2(key only)
|
|
maxArgs 3 # maximum arguments(including command itself), default is 2(key only)
|
|
mode Read,Write # a command mode Read/Write/Admin is exclusive, Conf.cpp should check this.
|
|
# default is Read, Write
|
|
}
|
|
# hello.repl2 <list-key>
|
|
# just skipped since minArgs = 2, maxArgs = 2, mode = Read,Write are default values
|
|
hello.repl2 {
|
|
}
|
|
# hello.toggle.case key
|
|
hello.toggle.case {
|
|
}
|
|
# hello.more.expire key milliseconds
|
|
hello.more.expire {
|
|
minArgs 3
|
|
maxArgs 3
|
|
}
|
|
# hello.zsumrange key startscore endscore
|
|
hello.zsumrange {
|
|
minArgs 4
|
|
maxArgs 4
|
|
}
|
|
# hello.lexrange key min_lex max_lex min_age max_age
|
|
hello.lexrange {
|
|
minArgs 6
|
|
maxArgs 6
|
|
}
|
|
# hello.hcopy key srcfield dstfield
|
|
hello.hcopy {
|
|
minArgs 4
|
|
maxArgs 4
|
|
}
|
|
|
|
# from redis source src/modules/hellotype.c
|
|
# hellotype.insert key value
|
|
hello.insert {
|
|
minArgs 3
|
|
maxArgs 3
|
|
}
|
|
# hellotype.range key first count
|
|
hellotype.range {
|
|
minArgs 4
|
|
maxArgs 4
|
|
}
|
|
# hellotype.len key
|
|
hello.len {
|
|
}
|
|
}
|