ric-plt/dbaas.git
4 years agoRefactor delpub-commands, Allow multiple channels 27/227/4
Heinonen Arvo [Wed, 15 May 2019 14:03:52 +0000 (17:03 +0300)]
Refactor delpub-commands, Allow multiple channels

Refactor the implementation of redis commands: DELPUB, DELIEPUB
and DELNEPUB to make more clear which parts of the old implementation
are specific to each command.

Allow multiple channels as parameter in the redis commands
DELIEPUB and DELNEPUB.

New syntaxes:
DELIEPUB key oldvalue channel message [ channel message .. ]
DELNEPUB key oldvalue channel message [ channel message .. ]

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I3dfb86ed4c8951bb395aff053b9c2bb898cfd0a4

Remove old delpub command implementation

After refactoring the old delpub command implementation in
'delPubStringGenericCommand' is no longer used. Remove it.

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: I77817744aea6c78226e8cab8aebbd401efe63c40

4 years agoAdd new redis command MSETMPUB 24/224/4
Heinonen Arvo [Tue, 14 May 2019 08:23:44 +0000 (11:23 +0300)]
Add new redis command MSETMPUB

Add new redis command MSETMPUB which is functionally identical to
MSETPUB except that it allows to specify multiple channel-message pairs
at once.

The syntax for the new command is:
MSETMPUB number_of_key_value_pairs number_of_channel_message_pairs
         key value [ key value ... ]
 channel message [ channel message ... ]

Signed-off-by: Arvo Heinonen <arvo.heinonen@nokia.com>
Change-Id: Ib237eacaaaf5dc22b9c8850e7127d8c96f11a36b

4 years agoRefactor setpub-commands, Allow multiple channels 23/223/4
Heinonen Arvo [Tue, 14 May 2019 08:22:38 +0000 (11:22 +0300)]
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

5 years agoAdd base version of Redis modules 36/136/3
Rolf Badorek [Fri, 10 May 2019 13:12:32 +0000 (16:12 +0300)]
Add base version of Redis modules

Copied from Nokia internal RCP code repository, revision d452b42d from
branch 'rcp2.0'.

No functional changes compared to above mentioned base version.

Documentation of the available commands added to README file.

Updated `Dockerfile.redis` so that Redis modules are built and
installed to image which is used as a basis for `redis-standalone`
pod.

Change-Id: I32bc59b4f0a60eb3683fdd31e295d57ee68d8430
Signed-off-by: Rolf Badorek <rolf.badorek@nokia.com>
5 years agoDisable data persistency 41/141/1
Rolf Badorek [Mon, 13 May 2019 11:51:45 +0000 (14:51 +0300)]
Disable data persistency

Currently the Redis default setting is used, which is that a periodic
snapshot writing to disk is enabled.

Its implementation is quite optimal, but as backup snapshots are not
needed for anything in current configuration, those are disabled in
this commit.

Redis server instance is defined to be an init process in DBaaS service
pod/container. In case of service restart the container will restart
also. There is no external storage for `/var/lib/redis/dump.rdb`
file and thus its content will be lost in service restart.

Redis data persistency over different failure scenarios is a future
feature candidate of RIC.

Change-Id: Ic9216bcb5067ed59c846e2b7805a78ee675bbc35
Signed-off-by: Rolf Badorek <rolf.badorek@nokia.com>
5 years agoInitial commit 33/33/1
Marco Tallskog [Thu, 4 Apr 2019 11:15:24 +0000 (14:15 +0300)]
Initial commit

Change-Id: Ia3c105ab233c474abd2eb1a8af0310412fea3d0a
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
5 years agoInitial empty repository
Andrew Grimberg [Thu, 21 Mar 2019 23:55:41 +0000 (23:55 +0000)]
Initial empty repository