> ## Documentation Index
> Fetch the complete documentation index at: https://upstash-vector.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

> Available Commands in upstash-redis

<AccordionGroup>
  <Accordion title="Auth">
    <CardGroup cols={3}>
      <Card title="ECHO" href="/oss/sdks/py/redis/commands/auth/echo">
        Echo the given string.
      </Card>

      <Card title="PING" href="/oss/sdks/py/redis/commands/auth/ping">
        Ping the server.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Bitmap">
    <CardGroup cols={3}>
      <Card title="BITCOUNT" href="/oss/sdks/py/redis/commands/bitmap/bitcount">
        Count set bits in a string.
      </Card>

      <Card title="BITFIELD" href="/oss/sdks/py/redis/commands/bitmap/bitfield">
        Perform bitwise operations between strings.
      </Card>

      <Card title="BITOP" href="/oss/sdks/py/redis/commands/bitmap/bitop">
        Perform bitwise operations between strings.
      </Card>

      <Card title="BITPOS" href="/oss/sdks/py/redis/commands/bitmap/bitpos">
        Find first bit set or clear in a string.
      </Card>

      <Card title="GETBIT" href="/oss/sdks/py/redis/commands/bitmap/getbit">
        Returns the bit value at offset in the string value stored at key.
      </Card>

      <Card title="SETBIT" href="/oss/sdks/py/redis/commands/bitmap/setbit">
        Sets or clears the bit at offset in the string value stored at key.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Generic">
    <CardGroup cols={3}>
      <Card title="DEL" href="/oss/sdks/py/redis/commands/generic/del">
        Delete one or multiple keys.
      </Card>

      <Card title="EXISTS" href="/oss/sdks/py/redis/commands/generic/exists">
        Determine if a key exists.
      </Card>

      <Card title="EXPIRE" href="/oss/sdks/py/redis/commands/generic/expire">
        Set a key's time to live in seconds.
      </Card>

      <Card title="EXPIREAT" href="/oss/sdks/py/redis/commands/generic/expireat">
        Set the expiration for a key as a UNIX timestamp.
      </Card>

      <Card title="KEYS" href="/oss/sdks/py/redis/commands/generic/keys">
        Find all keys matching the given pattern.
      </Card>

      <Card title="PERSIST" href="/oss/sdks/py/redis/commands/generic/persist">
        Remove the expiration from a key.
      </Card>

      <Card title="PEXPIRE" href="/oss/sdks/py/redis/commands/generic/pexpire">
        Set a key's time to live in milliseconds.
      </Card>

      <Card title="PEXPIREAT" href="/oss/sdks/py/redis/commands/generic/pexpireat">
        Set the expiration for a key as a UNIX timestamp specified in milliseconds.
      </Card>

      <Card title="PTTL" href="/oss/sdks/py/redis/commands/generic/pttl">
        Get the time to live for a key in milliseconds.
      </Card>

      <Card title="RANDOMKEY" href="/oss/sdks/py/redis/commands/generic/randomkey">
        Return a random key from the keyspace.
      </Card>

      <Card title="RENAME" href="/oss/sdks/py/redis/commands/generic/rename">
        Rename a key.
      </Card>

      <Card title="RENAMENX" href="/oss/sdks/py/redis/commands/generic/renamenx">
        Rename a key, only if the new key does not exist.
      </Card>

      {/* <Card title="RESTORE" href="/oss/sdks/py/redis/commands/generic/restore">
              Create a key using the provided serialized value, previously obtained using DUMP.
          </Card> */}

      <Card title="SCAN" href="/oss/sdks/py/redis/commands/generic/scan">
        Incrementally iterate the keys space.
      </Card>

      {/* <Card title="SORT" href="/oss/sdks/py/redis/commands/generic/sort">
              Sort the elements in a list, set or sorted set.
          </Card> */}

      <Card title="TOUCH" href="/oss/sdks/py/redis/commands/generic/touch">
        Alters the last access time of a key(s). Returns the number of existing keys specified.
      </Card>

      <Card title="TTL" href="/oss/sdks/py/redis/commands/generic/ttl">
        Get the time to live for a key.
      </Card>

      <Card title="TYPE" href="/oss/sdks/py/redis/commands/generic/type">
        Determine the type stored at key.
      </Card>

      <Card title="UNLINK" href="/oss/sdks/py/redis/commands/generic/unlink">
        Delete one or more keys.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Hash">
    <CardGroup cols={3}>
      <Card title="HDEL" href="/oss/sdks/py/redis/commands/hash/hdel" />

      <Card title="HEXISTS" href="/oss/sdks/py/redis/commands/hash/hexists" />

      <Card title="HGET" href="/oss/sdks/py/redis/commands/hash/hget" />

      <Card title="HGETALL" href="/oss/sdks/py/redis/commands/hash/hgetall" />

      <Card title="HINCRBY" href="/oss/sdks/py/redis/commands/hash/hincrby" />

      <Card title="HINCRBYFLOAT" href="/oss/sdks/py/redis/commands/hash/hincrbyfloat" />

      <Card title="HKEYS" href="/oss/sdks/py/redis/commands/hash/hkeys" />

      <Card title="HLEN" href="/oss/sdks/py/redis/commands/hash/hlen" />

      <Card title="HMGET" href="/oss/sdks/py/redis/commands/hash/hmget" />

      <Card title="HRANDFIELD" href="/oss/sdks/py/redis/commands/hash/hrandfield" />

      <Card title="HSCAN" href="/oss/sdks/py/redis/commands/hash/hscan" />

      <Card title="HSET" href="/oss/sdks/py/redis/commands/hash/hset" />

      <Card title="HSET" href="/oss/sdks/py/redis/commands/hash/hmset" />

      <Card title="HSETNX" href="/oss/sdks/py/redis/commands/hash/hsetnx" />

      <Card title="HSTRLEN" href="/oss/sdks/py/redis/commands/hash/hstrlen" />

      <Card title="HVALS" href="/oss/sdks/py/redis/commands/hash/hvals" />
    </CardGroup>
  </Accordion>

  <Accordion title="List">
    <CardGroup cols={3}>
      <Card title="LINDEX" href="/oss/sdks/py/redis/commands/list/lindex" />

      <Card title="LINSERT" href="/oss/sdks/py/redis/commands/list/linsert" />

      <Card title="LLEN" href="/oss/sdks/py/redis/commands/list/llen" />

      <Card title="LMOVE" href="/oss/sdks/py/redis/commands/list/lmove" />

      <Card title="LPOP" href="/oss/sdks/py/redis/commands/list/lpop" />

      <Card title="LPOS" href="/oss/sdks/py/redis/commands/list/lpos" />

      <Card title="LPUSH" href="/oss/sdks/py/redis/commands/list/lpush" />

      <Card title="LPUSHX" href="/oss/sdks/py/redis/commands/list/lpushx" />

      <Card title="LRANGE" href="/oss/sdks/py/redis/commands/list/lrange" />

      <Card title="LREM" href="/oss/sdks/py/redis/commands/list/lrem" />

      <Card title="LSET" href="/oss/sdks/py/redis/commands/list/lset" />

      <Card title="LTRIM" href="/oss/sdks/py/redis/commands/list/ltrim" />

      <Card title="RPOP" href="/oss/sdks/py/redis/commands/list/rpop" />

      <Card title="RPUSH" href="/oss/sdks/py/redis/commands/list/rpush" />

      <Card title="RPUSHX" href="/oss/sdks/py/redis/commands/list/rpushx" />
    </CardGroup>
  </Accordion>

  <Accordion title="PubSub">
    <CardGroup cols={3}>
      <Card title="PUBLISH" href="/oss/sdks/py/redis/commands/pubsub/publish">
        Publish messages to many clients
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Scripts">
    <CardGroup cols={3}>
      <Card title="EVAL" href="/oss/sdks/py/redis/commands/scripts/eval" />

      <Card title="EVELSHA" href="/oss/sdks/py/redis/commands/scripts/evalsha" />

      <Card title="SCRIPT EXISTS" href="/oss/sdks/py/redis/commands/scripts/script_exists" />

      <Card title="SCRIPT FLUSH" href="/oss/sdks/py/redis/commands/scripts/script_flush" />

      <Card title="SCRIPT LOAD" href="/oss/sdks/py/redis/commands/scripts/script_load" />
    </CardGroup>
  </Accordion>

  <Accordion title="Server">
    <CardGroup cols={3}>
      <Card title="DBSIZE" href="/oss/sdks/py/redis/commands/server/dbsize" />

      <Card title="FLUSHALL" href="/oss/sdks/py/redis/commands/server/flushall" />

      <Card title="FLUSHDB" href="/oss/sdks/py/redis/commands/server/flushdb" />
    </CardGroup>
  </Accordion>

  <Accordion title="Set">
    <CardGroup cols={3}>
      <Card title="SADD" href="/oss/sdks/py/redis/commands/set/sadd" />

      <Card title="SCARD" href="/oss/sdks/py/redis/commands/set/scard" />

      <Card title="SDIFF" href="/oss/sdks/py/redis/commands/set/sdiff" />

      <Card title="SDIFFSTORE" href="/oss/sdks/py/redis/commands/set/sdiffstore" />

      <Card title="SINTER" href="/oss/sdks/py/redis/commands/set/sinter" />

      <Card title="SINTERSTORE" href="/oss/sdks/py/redis/commands/set/sinterstore" />

      <Card title="SISMEMBER" href="/oss/sdks/py/redis/commands/set/sismember" />

      <Card title="SMEMBERS" href="/oss/sdks/py/redis/commands/set/smembers" />

      <Card title="SMISMEMBER" href="/oss/sdks/py/redis/commands/set/smismember" />

      <Card title="SMOVE" href="/oss/sdks/py/redis/commands/set/smove" />

      <Card title="SPOP" href="/oss/sdks/py/redis/commands/set/spop" />

      <Card title="SRANDMEMBER" href="/oss/sdks/py/redis/commands/set/srandmember" />

      <Card title="SREM" href="/oss/sdks/py/redis/commands/set/srem" />

      <Card title="SSCAN" href="/oss/sdks/py/redis/commands/set/sscan" />

      <Card title="SUNION" href="/oss/sdks/py/redis/commands/set/sunion" />

      <Card title="SUNIONSTORE" href="/oss/sdks/py/redis/commands/set/sunionstore" />
    </CardGroup>
  </Accordion>

  <Accordion title="Sorted Set">
    <CardGroup cols={3}>
      <Card title="ZADD" href="/oss/sdks/py/redis/commands/zset/zadd" />

      <Card title="ZCARD" href="/oss/sdks/py/redis/commands/zset/zcard" />

      <Card title="ZCOUNT" href="/oss/sdks/py/redis/commands/zset/zcount" />

      <Card title="ZDIFF" href="/oss/sdks/py/redis/commands/zset/zdiff" />

      <Card title="ZDIFFSTORE" href="/oss/sdks/py/redis/commands/zset/zdiffstore" />

      <Card title="ZINCRBY" href="/oss/sdks/py/redis/commands/zset/zincrby" />

      <Card title="ZINTER" href="/oss/sdks/py/redis/commands/zset/zinter" />

      <Card title="ZINTERSTORE" href="/oss/sdks/py/redis/commands/zset/zinterstore" />

      <Card title="ZLEXCOUNT" href="/oss/sdks/py/redis/commands/zset/zlexcount" />

      <Card title="ZMSCORE" href="/oss/sdks/py/redis/commands/zset/zmscore" />

      <Card title="ZPOPMAX" href="/oss/sdks/py/redis/commands/zset/zpopmax" />

      <Card title="ZPOPMIN" href="/oss/sdks/py/redis/commands/zset/zpopmin" />

      <Card title="ZRANDMEMBER" href="/oss/sdks/py/redis/commands/zset/zrandmember" />

      <Card title="ZRANGE" href="/oss/sdks/py/redis/commands/zset/zrange" />

      <Card title="ZRANK" href="/oss/sdks/py/redis/commands/zset/zrank" />

      <Card title="ZREM" href="/oss/sdks/py/redis/commands/zset/zrem" />

      <Card title="ZREMRANGEBYLEX" href="/oss/sdks/py/redis/commands/zset/zremrangebylex" />

      <Card title="ZREMRANGEBYRANK" href="/oss/sdks/py/redis/commands/zset/zremrangebyrank" />

      <Card title="ZREMRANGEBYSCORE" href="/oss/sdks/py/redis/commands/zset/zremrangebyscore" />

      <Card title="ZREVRANK" href="/oss/sdks/py/redis/commands/zset/zrevrank" />

      <Card title="ZSCAN" href="/oss/sdks/py/redis/commands/zset/zscan" />

      <Card title="ZSCORE" href="/oss/sdks/py/redis/commands/zset/zscore" />

      <Card title="ZUNION" href="/oss/sdks/py/redis/commands/zset/zunion" />

      <Card title="ZUNIONSTORE" href="/oss/sdks/py/redis/commands/zset/zunionstore" />
    </CardGroup>
  </Accordion>

  <Accordion title="String">
    <CardGroup cols={3}>
      <Card title="APPEND" href="/oss/sdks/py/redis/commands/string/append">
        Append a value to a string stored at key.
      </Card>

      <Card title="DECR" href="/oss/sdks/py/redis/commands/string/decr">
        Decrement the integer value of a key by one.
      </Card>

      <Card title="DECRBY" href="/oss/sdks/py/redis/commands/string/decrby">
        Decrement the integer value of a key by the given number.
      </Card>

      <Card title="GET" href="/oss/sdks/py/redis/commands/string/get">
        Get the value of a key.
      </Card>

      <Card title="GETDEL" href="/oss/sdks/py/redis/commands/string/getdel">
        Get the value of a key and delete the key.
      </Card>

      <Card title="GETRANGE" href="/oss/sdks/py/redis/commands/string/getrange">
        Get a substring of the string stored at a key.
      </Card>

      <Card title="GETSET" href="/oss/sdks/py/redis/commands/string/getset">
        Set the string value of a key and return its old value.
      </Card>

      <Card title="INCR" href="/oss/sdks/py/redis/commands/string/incr">
        Increment the integer value of a key by one.
      </Card>

      <Card title="INCRBY" href="/oss/sdks/py/redis/commands/string/incrby">
        Increment the integer value of a key by the given amount.
      </Card>

      <Card title="INCRBYFLOAT" href="/oss/sdks/py/redis/commands/string/incrbyfloat">
        Increment the float value of a key by the given amount.
      </Card>

      <Card title="MGET" href="/oss/sdks/py/redis/commands/string/mget">
        Get the values of all the given keys.
      </Card>

      <Card title="MSET" href="/oss/sdks/py/redis/commands/string/mset">
        Set multiple keys to multiple values.
      </Card>

      <Card title="MSETNX" href="/oss/sdks/py/redis/commands/string/msetnx">
        Set multiple keys to multiple values, only if none of the keys exist.
      </Card>

      <Card title="PSETEX" href="/oss/sdks/py/redis/commands/string/psetex">
        Set the value and expiration in milliseconds of a key.
      </Card>

      <Card title="SET" href="/oss/sdks/py/redis/commands/string/set">
        Set the string value of a key.
      </Card>

      <Card title="SETEX" href="/oss/sdks/py/redis/commands/string/setex">
        Set the value and expiration of a key.
      </Card>

      <Card title="SETNX" href="/oss/sdks/py/redis/commands/string/setnx">
        Set the value of a key, only if the key does not exist.
      </Card>

      <Card title="SETRANGE" href="/oss/sdks/py/redis/commands/string/setrange">
        Overwrite part of a string at key starting at the specified offset.
      </Card>

      <Card title="STRLEN" href="/oss/sdks/py/redis/commands/string/strlen">
        Get the length of the value stored in a key.
      </Card>

      <Card title="SUBSTR" href="/oss/sdks/py/redis/commands/string/substr">
        Get a substring of the string stored at a key.
      </Card>
    </CardGroup>
  </Accordion>

  <Accordion title="Transactions">
    <Card title="TRANSACTION" href="/oss/sdks/py/redis/commands/transaction">
      Run multiple commands in a transaction.
    </Card>
  </Accordion>
</AccordionGroup>
