From b2e8f5832a8679ff5c2d3b602433ca62b0a281ac Mon Sep 17 00:00:00 2001 From: Crimson Date: Sun, 19 Nov 2017 17:56:54 +0100 Subject: [PATCH] Add godoc commentary to SMembers and SMembersMap --- commands.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands.go b/commands.go index 7a963754..aa98aa73 100644 --- a/commands.go +++ b/commands.go @@ -1164,12 +1164,14 @@ func (c *cmdable) SIsMember(key string, member interface{}) *BoolCmd { return cmd } +// Redis `SMEMBERS key` command output as a slice func (c *cmdable) SMembers(key string) *StringSliceCmd { cmd := NewStringSliceCmd("smembers", key) c.process(cmd) return cmd } +// Redis `SMEMBERS key` command output as a map func (c *cmdable) SMembersMap(key string) *StringStructMapCmd { cmd := NewStringStructMapCmd("smembers", key) c.process(cmd)