From edbe04b8181c9fc6f74757c3a90dac5a12aac78f Mon Sep 17 00:00:00 2001 From: Yoon Date: Fri, 6 Apr 2018 18:00:27 +0900 Subject: [PATCH] Add sample custom command configuration(conf/command.conf) --- conf/command.conf | 93 +++++++++++++++++++++++++++++++++++++++++++++++ conf/predixy.conf | 6 +++ 2 files changed, 99 insertions(+) create mode 100644 conf/command.conf diff --git a/conf/command.conf b/conf/command.conf new file mode 100644 index 0000000..d966f6a --- /dev/null +++ b/conf/command.conf @@ -0,0 +1,93 @@ +CustomCommand { + # + hello.simple { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.push.native { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.push.call { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.push.call2 { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.list.sumlen { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.list.splice { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.list.splice.auto { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.ran.array { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.repl1 { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.repl2 { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.toggle.case { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.more.expire { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.lexrange { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.hcopy { + minArgs 3 + maxArgs 3 + mode Read + } + # + hello.leftpad { + minArgs 3 + maxArgs 3 + mode Read + } +} + diff --git a/conf/predixy.conf b/conf/predixy.conf index aa76713..6f4be1d 100644 --- a/conf/predixy.conf +++ b/conf/predixy.conf @@ -93,6 +93,12 @@ Include try.conf # Include dc.conf +################################### LATENCY #################################### +## Custom command define, see command.conf +## must defined before Latency monitor +#Include command.conf + + ################################### LATENCY #################################### ## Latency monitor define, see latency.conf Include latency.conf