Upstash Documentation home pagelight logodark logo
  • Discord
  • Blog
  • Twitter
  • Console
  • Console
Commands
Overview
Overview
Redis
Vector
QStash
Workflow
Developer API
  • Overall
  • Quickstarts
  • Features
  • SDKs
    • Typescript
    • Python
      • Overview
      • Getting Started
      • Features
      • Commands
        • Overview
        • Auth
        • Bitmap
        • Generic
        • Hash
        • Json
        • List
        • PubSub
        • Scripts
        • Server
        • Set
        • Sorted Set
        • String
    • Ratelimit (TS)
    • Ratelimit (PY)
  • How To
  • Integrations
  • Tutorials
  • Troubleshooting
  • Help
Commands

Overview

Available Commands in upstash-redis

ECHO

Echo the given string.

PING

Ping the server.

BITCOUNT

Count set bits in a string.

BITFIELD

Perform bitwise operations between strings.

BITOP

Perform bitwise operations between strings.

BITPOS

Find first bit set or clear in a string.

GETBIT

Returns the bit value at offset in the string value stored at key.

SETBIT

Sets or clears the bit at offset in the string value stored at key.

DEL

Delete one or multiple keys.

EXISTS

Determine if a key exists.

EXPIRE

Set a key’s time to live in seconds.

EXPIREAT

Set the expiration for a key as a UNIX timestamp.

KEYS

Find all keys matching the given pattern.

PERSIST

Remove the expiration from a key.

PEXPIRE

Set a key’s time to live in milliseconds.

PEXPIREAT

Set the expiration for a key as a UNIX timestamp specified in milliseconds.

PTTL

Get the time to live for a key in milliseconds.

RANDOMKEY

Return a random key from the keyspace.

RENAME

Rename a key.

RENAMENX

Rename a key, only if the new key does not exist.

SCAN

Incrementally iterate the keys space.

TOUCH

Alters the last access time of a key(s). Returns the number of existing keys specified.

TTL

Get the time to live for a key.

TYPE

Determine the type stored at key.

UNLINK

Delete one or more keys.

HDEL

HEXISTS

HEXPIRE

HEXPIREAT

HEXPIRETIME

HGET

HGETALL

HINCRBY

HINCRBYFLOAT

HKEYS

HLEN

HMGET

HRANDFIELD

HPERSIST

HPEXPIRE

HPEXPIREAT

HPEXPIRETIME

HPTTL

HSCAN

HSET

HSET

HSETNX

HSTRLEN

HTTL

HVALS

LINDEX

LINSERT

LLEN

LMOVE

LPOP

LPOS

LPUSH

LPUSHX

LRANGE

LREM

LSET

LTRIM

RPOP

RPUSH

RPUSHX

PUBLISH

Publish messages to many clients

EVAL

EVAL_RO

EVALSHA

EVALSHA_RO

SCRIPT EXISTS

SCRIPT FLUSH

SCRIPT LOAD

DBSIZE

FLUSHALL

FLUSHDB

SADD

SCARD

SDIFF

SDIFFSTORE

SINTER

SINTERSTORE

SISMEMBER

SMEMBERS

SMISMEMBER

SMOVE

SPOP

SRANDMEMBER

SREM

SSCAN

SUNION

SUNIONSTORE

ZADD

ZCARD

ZCOUNT

ZDIFF

ZDIFFSTORE

ZINCRBY

ZINTER

ZINTERSTORE

ZLEXCOUNT

ZMSCORE

ZPOPMAX

ZPOPMIN

ZRANDMEMBER

ZRANGE

ZRANK

ZREM

ZREMRANGEBYLEX

ZREMRANGEBYRANK

ZREMRANGEBYSCORE

ZREVRANK

ZSCAN

ZSCORE

ZUNION

ZUNIONSTORE

APPEND

Append a value to a string stored at key.

DECR

Decrement the integer value of a key by one.

DECRBY

Decrement the integer value of a key by the given number.

GET

Get the value of a key.

GETDEL

Get the value of a key and delete the key.

GETRANGE

Get a substring of the string stored at a key.

GETSET

Set the string value of a key and return its old value.

INCR

Increment the integer value of a key by one.

INCRBY

Increment the integer value of a key by the given amount.

INCRBYFLOAT

Increment the float value of a key by the given amount.

MGET

Get the values of all the given keys.

MSET

Set multiple keys to multiple values.

MSETNX

Set multiple keys to multiple values, only if none of the keys exist.

SET

Set the string value of a key.

SETRANGE

Overwrite part of a string at key starting at the specified offset.

STRLEN

Get the length of the value stored in a key.

TRANSACTION

Run multiple commands in a transaction.

Was this page helpful?

Suggest editsRaise issue
FeaturesECHO
xgithubdiscord
Powered by Mintlify