Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDefaultHasher ¶
func SetDefaultHasher(hasher Hasher)
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is a probabilistic counter
func NewFilter ¶
NewFilter returns a new cuckoofilter with a given capacity. A capacity of 1000000 is a normal default, which allocates about ~1MB on 64-bit machines.
func (*Filter) InsertUnique ¶
InsertUnique inserts data into the counter if not exists and returns true upon success
Click to show internal directories.
Click to hide internal directories.