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{
|
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)),
|
||||||
|
Reference in New Issue
Block a user