Skip to content

Latest commit

 

History

History
39 lines (38 loc) · 1.5 KB

TopK.md

File metadata and controls

39 lines (38 loc) · 1.5 KB

TOPK.RESERVE

    bool reserve(const sw::redis::StringView &key,
                 long long topk,
                 long long width = default_width,
                 long long depth = default_depth,
                 double decay = default_decay);

TOPK.ADD

    template <typename Input, typename Output>
    void add(const sw::redis::StringView &key, Input first, Input last, Output output);

TOPK.INCRBY

    template <typename Input, typename Output>
    void incrby(const sw::redis::StringView &key,
                Input first,
                Input last,
                Output output);

TOPK.QUERY

    void query(const sw::redis::StringView &key, Input first, Input last, Output output);

TOPK.COUNT

    void count(const sw::redis::StringView &key, Input first, Input last, Output output);

TOPK.LIST

    void list(const sw::redis::StringView &key, Output output);

TOPK.INFO

    void info(const sw::redis::StringView &key, Output &output);