Add support for SDL groups 94/194/3 v0.2.0
authorMarco Tallskog <marco.tallskog@nokia.com>
Fri, 24 May 2019 13:17:02 +0000 (16:17 +0300)
committerMarco Tallskog <marco.tallskog@nokia.com>
Mon, 27 May 2019 11:29:33 +0000 (14:29 +0300)
commit135580f96b31e8dd0ccd5695df877a7942b912ae
tree8a6e51cd925378e083f9be4dc460bfaf6460c20a
parenta66fcfb6cc2918cb06945ebb2f84f0c9f440ec09
Add support for SDL groups

SDL group is an unordered collection of members where each member is
unique.

Add the following methods to do operations with groups:
-AddMember: adds number of members into a given group. It is possible to
give already existing members to be added but that doesn't have an
effect to group.
-RemoveMember: Remove number of members from a group. It is possible to
try to remove non-existing members from a group without an error.
-RemoveGroup: Remove the whole group along with its members.
-GetMembers: Get all members from a group.
-IsMember: Check if a specific member is part of the group.
-GroupSize: Return the number of members in group.

Change-Id: I9005ffe584aa0872c5a3fab170d0ac37d9b9f30a
Signed-off-by: Marco Tallskog <marco.tallskog@nokia.com>
bench_test.go
internal/sdlgoredis/sdlgoredis.go
sdl.go
sdl_test.go