Skip to content

Latest commit

 

History

History
65 lines (64 loc) · 2.38 KB

BloomFilter.md

File metadata and controls

65 lines (64 loc) · 2.38 KB

BF.RESERVE

    void reserve(const sw::redis::StringView &key,
                 double error_rate,
                 long long capacity,
                 bool nonscaling,
                 long long expansion = default_expansion_rate);

BF.ADD

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

BF.MADD

    template <typename Input, typename Output>
    void madd(const std::string& key,
              Input first,
              Input last,
              Output &result);

BF.INSERT

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

BF.EXISTS

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

BF.MEXISTS

    template <typename Input, typename Output>
    void mexists(const std::string& key,
                 Input first,
                 Input last,
                 Output &result);

BF.SCANDUMP

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

BF.LOADCHUNK

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

BF.INFO

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