mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 00:22:41 +08:00
update
This commit is contained in:
@ -54,7 +54,7 @@ func NewBloomFilter(expectedInsertions uint, fpp float64, opts ...option) *Bloom
|
||||
bf := &BloomFilter{
|
||||
bits: bits,
|
||||
funcs: k,
|
||||
store: expr.If[bitStore](
|
||||
store: expr.Ternary[bitStore](
|
||||
opt.redisClient == nil,
|
||||
newMemStore(bits),
|
||||
newRedisStore(opt.redisClient, opt.redisKey, bits)),
|
||||
|
Reference in New Issue
Block a user