MCPcopy Create free account
hub / github.com/dbProjectRED/redimo.go / SPOP

Method SPOP

sets.go:237–244  ·  view source on GitHub ↗
(key string, count int64)

Source from the content-addressed store, hash-verified

235}
236
237func (c Client) SPOP(key string, count int64) (members []string, err error) {
238 members, err = c.SRANDMEMBER(key, count)
239 if err == nil {
240 _, err = c.SREM(key, members...)
241 }
242
243 return
244}
245
246func (c Client) SRANDMEMBER(key string, count int64) (members []string, err error) {
247 if count < 0 {

Callers 1

TestSetModifiersFunction · 0.80

Calls 2

SRANDMEMBERMethod · 0.95
SREMMethod · 0.95

Tested by 1

TestSetModifiersFunction · 0.64