SHasKey returns whether it has the set at given key.
(key string)
| 85 | |
| 86 | // SHasKey returns whether it has the set at given key. |
| 87 | func (s *Set) SHasKey(key string) bool { |
| 88 | if _, ok := s.M[key]; ok { |
| 89 | return true |
| 90 | } |
| 91 | return false |
| 92 | } |
| 93 | |
| 94 | // SPop removes and returns one or more random elements from the set value store at key. |
| 95 | func (s *Set) SPop(key string) *core.Record { |