Refactor setpub-commands, Allow multiple channels 23/223/4
authorHeinonen Arvo <arvo.heinonen@nokia.com>
Tue, 14 May 2019 08:22:38 +0000 (11:22 +0300)
committerArvo Heinonen <arvo.heinonen@nokia.com>
Tue, 4 Jun 2019 13:18:28 +0000 (16:18 +0300)
commitb4541ef7f603a11641759233caf1ef502ecf53d6
tree6a20375a8db8bb36df445c5a699f6e6e0302c4d5
parent87fd3ca9bf5cc0949dffc44ac68f0964964bee41
Refactor setpub-commands, Allow multiple channels

Refactor the implementation of redis commands: MSETPUB, SETIEPUB,
SETNEPUB, SETXXPUB and SETNXPUB to make more clear which parts
of the old implementation are specific to each command.

Allow multiple channels as parameter in the redis commands
SETXXPUB, SETNXPUB, SETIEPUB and SETNEPUB.

New syntaxes:
SETXXPUB key value channel message [ channel message .. ]
SETNXPUB key value channel message [ channel message .. ]
SETIEPUB key value oldvalue channel message [ channel message .. ]
SETNEPUB key value oldvalue channel message [ channel message .. ]

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: If1c99f54148140f76a213d3a88269bd4fc83e49c
redismodule/README.md
redismodule/src/exstrings.c
redismodule/tst/mock/include/exstringsStub.h
redismodule/tst/src/exstrings_test.cpp