#filter #dakv #cuckoo

dakv_cuckoo

Cuckoo filter for dakv

2 releases

0.1.1 Jun 9, 2021
0.1.0 May 17, 2020

#6 in #cuckoo

MIT license

19KB
599 lines

Cuckoo filter


Build Status Version Coverage Status

use dakv_cuckoo::CuckooFilter;

fn main() {
    let mut cf = CuckooFilter::default();
    let _ = cf.add(b"test");
    assert_eq!(cf.size(), 1);
    assert!(cf.contains(b"test"));
    assert!(cf.delete(b"test"));
    assert_eq!(cf.size(), 0);
    assert!(!cf.contains(b"test"));
}

Dependencies

~1.4–2.1MB
~37K SLoC