Add godoc commentary to SMembers and SMembersMap

This commit is contained in:
Crimson 2017-11-19 17:56:54 +01:00
parent 7aa0130b2e
commit b2e8f5832a
1 changed files with 2 additions and 0 deletions

View File

@ -1164,12 +1164,14 @@ func (c *cmdable) SIsMember(key string, member interface{}) *BoolCmd {
return cmd return cmd
} }
// Redis `SMEMBERS key` command output as a slice
func (c *cmdable) SMembers(key string) *StringSliceCmd { func (c *cmdable) SMembers(key string) *StringSliceCmd {
cmd := NewStringSliceCmd("smembers", key) cmd := NewStringSliceCmd("smembers", key)
c.process(cmd) c.process(cmd)
return cmd return cmd
} }
// Redis `SMEMBERS key` command output as a map
func (c *cmdable) SMembersMap(key string) *StringStructMapCmd { func (c *cmdable) SMembersMap(key string) *StringStructMapCmd {
cmd := NewStringStructMapCmd("smembers", key) cmd := NewStringStructMapCmd("smembers", key)
c.process(cmd) c.process(cmd)