mirror of https://github.com/go-redis/redis.git
Add godoc commentary to SMembers and SMembersMap
This commit is contained in:
parent
7aa0130b2e
commit
b2e8f5832a
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue