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

Method BFExists

probabilistic.go:188–193  ·  view source on GitHub ↗

BFExists determines whether a given item was added to a Bloom filter. For more information - https://redis.io/commands/bf.exists/

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

Source from the content-addressed store, hash-verified

186// BFExists determines whether a given item was added to a Bloom filter.
187// For more information - https://redis.io/commands/bf.exists/
188func (c cmdable) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd {
189 args := []interface{}{"BF.EXISTS", key, element}
190 cmd := NewBoolCmd(ctx, args...)
191 _ = c(ctx, cmd)
192 return cmd
193}
194
195// BFLoadChunk restores a Bloom filter previously saved using BF.SCANDUMP.
196// For more information - https://redis.io/commands/bf.loadchunk/

Callers

nothing calls this directly

Calls 1

NewBoolCmdFunction · 0.85

Tested by

no test coverage detected