Skip to content

Latest commit

 

History

History
71 lines (70 loc) · 2.7 KB

CuckooFilter.md

File metadata and controls

71 lines (70 loc) · 2.7 KB

CF.RESERVE

    void reserve(const sw::redis::StringView &key,
                 long long capacity,
                 long long bucketsize,
                 long long max_iterations = default_max_iterations,
                 long long expansion = default_expansion_rate);

CF.ADD

    long long add(const sw::redis::StringView &key,
                  const sw::redis::StringView &item);

CF.ADDNX

    long long addnx(const sw::redis::StringView &key,
                    const sw::redis::StringView &item);

CF.INSERT

    template <typename Input, typename Output>
    void insert(const sw::redis::StringView &key,
                  long long capacity,
                  bool nocreate,
                  Input first,
                  Input last,
                  Output &result);

CF.INSERTNX

    void insertnx(const sw::redis::StringView &key,
                  long long capacity,
                  bool nocreate,
                  Input first,
                  Input last,
                  Output &result);

CF.EXISTS

    long long exists(const sw::redis::StringView &key,
                     const sw::redis::StringView &item);

CF.DEL

    long long del(const sw::redis::StringView &key,
                  const sw::redis::StringView &item);

CF.COUNT

    template <typename Input, typename Output>
    long long count(const sw::redis::StringView &key,
                    const sw::redis::StringView &item);

CF.SCANDUMP

    long long scandump(const sw::redis::StringView &key,
                       long long iter,
                       std::pair<long long, std::vector<unsigned char>>& result);

CF.LOADCHUNK

    void loadchunk(const sw::redis::StringView &key,
                   const std::pair<long long, std::vector<unsigned char>>& payload);

CF.INFO

    template <typename Output>
    void info(const sw::redis::StringView &key, Output &output);