1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-11-09 17:28:42 +08:00
parent d49c02924c
commit 823cd62148

View File

@ -54,7 +54,7 @@ func NewBloomFilter(expectedInsertions uint, fpp float64, opts ...option) *Bloom
bf := &BloomFilter{ bf := &BloomFilter{
bits: bits, bits: bits,
funcs: k, funcs: k,
store: expr.If[bitStore]( store: expr.Ternary[bitStore](
opt.redisClient == nil, opt.redisClient == nil,
newMemStore(bits), newMemStore(bits),
newRedisStore(opt.redisClient, opt.redisKey, bits)), newRedisStore(opt.redisClient, opt.redisKey, bits)),