1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00

boom filter

This commit is contained in:
2022-11-18 16:52:43 +08:00
parent abe445f5e6
commit 6e24cf5bdc
2 changed files with 7 additions and 7 deletions

View File

@ -39,9 +39,9 @@ func WithRedis(redis *redis.Client, key string) option {
}
}
// 初始化布隆过滤器
// New 初始化布隆过滤器
// https://pages.cs.wisc.edu/~cao/papers/summary-cache/node8.html
func NewBloomFilter(expectedInsertions uint, fpp float64, opts ...option) *BloomFilter {
func New(expectedInsertions uint, fpp float64, opts ...option) *BloomFilter {
opt := &bloomOptions{}
for _, f := range opts {