MCPcopy Create free account
hub / github.com/devfeel/dotweb / SRem

Method SRem

framework/redis/redisutil.go:451–455  ·  view source on GitHub ↗

SRem removes multiple elements from set

(key string, member ...interface{})

Source from the content-addressed store, hash-verified

449
450// SRem removes multiple elements from set
451func (rc *RedisClient) SRem(key string, member ...interface{}) (int, error) {
452 ctx := context.Background()
453 val, err := rc.client.SRem(ctx, key, member...).Result()
454 return int(val), err
455}
456
457// SDiff returns the difference between sets
458func (rc *RedisClient) SDiff(key ...interface{}) ([]string, error) {

Callers 1

Calls

no outgoing calls

Tested by 1