All Products
Search
Document Center

Data Management:Supported Redis commands

Last Updated:Feb 17, 2025

This topic describes the Redis commands that you can run in SQL Console and in database tickets.

Category

Command

Keys

  • Key-related read commands

    EXISTS, TTL, PTTL, RANDOMKEY, TYPE, SCAN, and OBJECTS

  • Key-related write commands

    DELDUMPEXPIRE, EXPIREART, MOVE, PERSIST, PEXPIRE, PEXPIREAT, RENAME, RENAMENX, RESTORE, SORT, TOUCH, UNLINK, WAIT, and MIGRATE

String

  • String-related read commands

    GET, GETRANGE, BITCOUNT, GETBIT, MGET, STRLEN, and BITOPS

  • String-related write commands

    APPEND, BITFIELD, BITOP, DECR, DECRBY, GETSET, INCR, INCRBY, INCRBYFLOAT, MSET, MSETNX, PSETEX, SET, and SETNX

List

  • List-related read commands

    LINDEX, LLEN, and LRANGE

  • List-related write commands

    BLPOP, BRPOP, BRPOPLPUSH, LINSERT, LPOP, LPUSH, LPUSHX, LREM, LSET, LTRIM, RPOP, RPOPLPUSH, RPUSH, RPUSHX

Set

  • Set-related read commands

    SCARD, SISMEMBER, SRANDMEMBER, and SSCAN

  • Set-related write commands

    SADD, SMOVE, SPOP, and SREM

Sortedset

  • Sorted set-related read commands

    ZCARD, ZCOUNT, ZLEXCOUNT, ZRANGE, ZRANGEBYLEX, ZRANGEBYSCORE, ZRANK, ZREVRANGE, ZREVRANGEBYLEX, ZREVRANGEBYSCORE, ZREVRANK, ZSCAN, and ZSCORE

  • Sorted set-related write commands

    ZADD, ZINCRBY, ZINTERSTORE, ZPOPMAX, ZPOPMIN, ZREM, ZUNIONSTORE, BZPOPMIN, and BZPOPMAX

Hash

  • Hash table-related read commands

    HEXISTS, HGET, HLEN, HMGET, HSCAN, and HSTRLEN

  • Hash table-related write commands

    HDEL, HINCRBY, HINCRBYFLOAT, HMSET, HSET, and HSETNX

Server

Server management-related read commands

DBSIZE, CLIENT LIST, INFO, and SLOWLOG

Connection

PING

HyperLogLog

PFCOUNT, PFADD, and PFMERGE

TairDoc

For more information about TairDoc commands, see TairDoc.

TairString

For more information about TairString commands, see TairString.

TairBloom

For more information about TairBloom commands, see TairBloom.

TairGIS

For more information about TairGIS commands, see TairGIS.

TairHash

For more information about TairHash commands, see TairHash.

TairCpc

For more information about TairCpc commands, see TairCpc.

TairTS

For more information about TairTS commands, see TairTS.

TairRoaring

For more information about TairRoaring commands, see TairRoaring.

TairSearch

For more information about TairSearch commands, see TairSearch.