seiflotfy / cuckoofilter

Cuckoo Filter: Practically Better Than Bloom
MIT License
1.13k stars 109 forks source link

How to reset all or clear all bits in cockoofilter #12

Open bizuio2017 opened 7 years ago

bizuio2017 commented 7 years ago

I want know how to reset cockoofilter , or clear all bit in cuckoofilter, when loop more than one loop , thanks.

mholt commented 5 years ago

Just overwrite your existing one maybe? cuckoo = cuckoofilter.NewDefaultCuckooFilter() ?

seiflotfy commented 5 years ago

maybe it makes sense to add "Reset()" for dev friendly reasons