MCPcopy
hub / github.com/redis/go-redis / BFMExists

Method BFMExists

probabilistic.go:491–498  ·  view source on GitHub ↗

BFMExists check if multiple elements exist in a Bloom filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/bf.mexists/

(ctx context.Context, key string, elements ...interface{})

Source from the content-addressed store, hash-verified

489// Returns an array of booleans indicating whether each element exists in the filter or not.
490// For more information - https://redis.io/commands/bf.mexists/
491func (c cmdable) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd {
492 args := []interface{}{"BF.MEXISTS", key}
493 args = append(args, elements...)
494
495 cmd := NewBoolSliceCmd(ctx, args...)
496 _ = c(ctx, cmd)
497 return cmd
498}
499
500// -------------------------------------------
501// Cuckoo filter commands

Callers

nothing calls this directly

Calls 1

NewBoolSliceCmdFunction · 0.85

Tested by

no test coverage detected