Packages

A high-performance, concurrent, and mutable Cuckoo Filter for Erlang and Elixir

Current section

Files

Jump to
cuckoo_filter src cuckoo_filter.hrl
Raw

src/cuckoo_filter.hrl

-record(cuckoo_filter, {
buckets :: atomics:atomics_ref(),
num_buckets :: pos_integer(),
bucket_size :: pos_integer(),
fingerprint_size :: 4 | 8 | 16 | 32 | 64,
max_evictions :: non_neg_integer(),
hash_function :: fun((binary()) -> non_neg_integer())
}).