Skip to content

Latest commit

 

History

History
179 lines (163 loc) · 6.32 KB

RedisJSON.md

File metadata and controls

179 lines (163 loc) · 6.32 KB

JSON.DEL

    auto del(const sw::redis::StringView &key);
    auto del(const sw::redis::StringView &key,
             const sw::redis::StringView &path);

JSON.GET

    template <typename Input>
    auto get(const sw::redis::StringView &key,
             Input first, Input last,
             const sw::redis::StringView &indent = "",
             const sw::redis::StringView &newline = "",
             const sw::redis::StringView &space = "",
             bool noescape = false);
    auto get(const sw::redis::StringView &key,
             const sw::redis::StringView &path,
             const sw::redis::StringView &indent = "",
             const sw::redis::StringView &newline = "",
             const sw::redis::StringView &space = "",
             bool noescape = false);

JSON.MGET

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

    template <typename Input, typename Output>
    void mget(Input first, Input last,
              Output &result);

JSON.SET

    bool set(const sw::redis::StringView &key,
             const sw::redis::StringView &path,
             const sw::redis::StringView &value,
             const DelOpt& opt);

    bool set(const sw::redis::StringView &key,
             const sw::redis::StringView &path,
             long long value,
             const DelOpt& opt);

    bool set(const sw::redis::StringView &key,
             const sw::redis::StringView &path,
             const sw::redis::StringView &value);

    bool set(const sw::redis::StringView &key,
             const sw::redis::StringView &path,
             long long value);

JSON.TYPE

    auto type(const sw::redis::StringView &key);

    auto type(const sw::redis::StringView &key,
              const sw::redis::StringView &path);

JSON.NUMINCRBY

    auto numincrby(const sw::redis::StringView &key,
                   const sw::redis::StringView &path,
                   long long num);

JSON.NUMMULTBY

    auto nummultby(const sw::redis::StringView &key,
                   const sw::redis::StringView &path,
                   long long num);

JSON.STRAPPEND

    auto strappend(const sw::redis::StringView &key,
                   const sw::redis::StringView &str);

    auto strappend(const sw::redis::StringView &key,
                   const sw::redis::StringView &path,
                   const sw::redis::StringView &str);

JSON.STRLEN

    auto strlen(const sw::redis::StringView &key);

    auto strlen(const sw::redis::StringView &key,
                const sw::redis::StringView &path);

JSON.ARRAPPEND

    template <typename Input>
    auto arrappend(const sw::redis::StringView &key,
                   const sw::redis::StringView &path,
                   Input first, Input last);

JSON.ARRINDEX

    auto arrindex(const sw::redis::StringView &key,
                  const sw::redis::StringView &path,
                  const sw::redis::StringView &json,
                  long long from = 0,
                  long long to = 0);

JSON.ARRINSERT

    template <typename Input>
    auto arrinsert(const sw::redis::StringView &key,
                   const sw::redis::StringView &path,
                   long long index,
                   Input first, Input last);

    auto arrinsert(const sw::redis::StringView &key,
                   const sw::redis::StringView &path,
                   long long index,
                   const sw::redis::StringView &json);

JSON.ARRLEN

    auto arrlen(const sw::redis::StringView &key);

    auto arrlen(const sw::redis::StringView &key,
                const sw::redis::StringView &path);

JSON.ARRPROP

    auto arrpop(const sw::redis::StringView &key,
                const sw::redis::StringView &path,
                long long index = -1);

    auto arrpop(const sw::redis::StringView &key);

JSON.ARRTRIM

    auto arrtrim(const sw::redis::StringView &key,
                 const sw::redis::StringView &path,
                 long long from,
                 long long to);

JSON.OBJKEYS

    template <typename Output>
    void objkeys(const sw::redis::StringView &key,
                 const sw::redis::StringView &path,
                 Output &result);

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

JSON.OBJLEN

    auto objlen(const sw::redis::StringView &key,
                const sw::redis::StringView &path);

    auto objlen(const sw::redis::StringView &key);

JSON.DEBUG

    auto debugmem(const sw::redis::StringView &key,
                  const sw::redis::StringView &path);

    auto debugmem(const sw::redis::StringView &key);

JSON.FORGET

    auto forget(const sw::redis::StringView &key);

    auto forget(const sw::redis::StringView &key,
                const sw::redis::StringView &path);

JSON.RESP

    auto resp(const sw::redis::StringView &key);

    auto resp(const sw::redis::StringView &key,
              const sw::redis::StringView &path);