Commit Graph

5 Commits

Author SHA1 Message Date
Yoon
5d9cd99270 Add support custom commands
Custom commands are from redis module can be added up to 16(currently).
Configuration is like below.

CustomCommand {
  hello {      # hello is command, must be lower case.
               # this command has 2 or 3 parameters and first argument is key
    minArgs 2  # minimum arguments(including command itself)
    maxArgs 3  # maximum arguments(including command itself)
    mode Write,Read # this command is writable and readable
               # mode value can be Admin, Private, NoKey, MultiKey, SMultiKey, MultiKeyVal, KeyAt2, KeyAt3
  }
  newcommand { # default minArgs = 1, maxArgs = 1 and mode = Write
    mode Admin
  }
  ...
}
2018-04-05 16:17:47 +09:00
fortrue
ce210cdee3 1.modify default ServerTimeout and KeepAlive to 0
2.improve doc
2018-03-28 20:27:04 +08:00
fortrue
86183a4a97 support redis server connection keepalive and timeout
fix Issue #21
2018-02-23 16:47:03 +08:00
fortrue
ac8bfd1e15 don't use redis-server password for redis-sentinel instances 2017-09-14 09:52:09 +08:00
joyield
801df5e2b8 release 1.0.0 2017-07-24 11:00:44 +08:00