You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-1Lines changed: 28 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,4 +9,31 @@ For details about the algorithm and citations please use this article for now
9
9
["Cuckoo Filter: Better Than Bloom" by Bin Fan, Dave Andersen and Michael Kaminsky](https://www.cs.cmu.edu/~dga/papers/cuckoo-conext2014.pdf)
10
10
11
11
##Note
12
-
This implementation uses a a static bucket size of 4 fingerprints and a fingerprint size of 1 byte based on my understanding of an optimal bucket/fingerprint/size ratio from the aforementioned paper.
12
+
This implementation uses a a static bucket size of 4 fingerprints and a fingerprint size of 1 byte based on my understanding of an optimal bucket/fingerprint/size ratio from the aforementioned paper.
13
+
14
+
##Example usage:
15
+
```go
16
+
17
+
import"github.com/seiflotfy/cuckoofilter"
18
+
19
+
cf:= cuckoofilter.NewDefaultCuckooFilter()
20
+
cf.InsertUnique("geeky ogre")
21
+
22
+
// Lookup a string (and it a miss) if it exists in the cuckoofilter
0 commit comments