Upstash Documentation home pagelight logodark logo
  • Discord
  • Blog
  • X
  • Console
  • Console
Commands
Overview
General
Redis
Kafka
Vector
QStash
SDKs
Developer API
Overall
  • Overview
SDKs
  • Typescript
  • Python
    • upstash-ratelimit
    • upstash-vector
    • upstash-redis
      • Overview
      • Getting Started
      • Features
      • Commands
        • Overview
        • Auth
        • Bitmap
        • Generic
        • Hash
        • List
        • PubSub
        • Scripts
        • Server
        • Set
        • Sorted Set
        • String
    • upstash-qstash
DevOps
  • Terraform
  • Pulumi
  • CLI
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

HGET

HGETALL

HINCRBY

HINCRBYFLOAT

HKEYS

HLEN

HMGET

HRANDFIELD

HSCAN

HSET

HSET

HSETNX

HSTRLEN

HVALS

LINDEX

LINSERT

LLEN

LMOVE

LPOP

LPOS

LPUSH

LPUSHX

LRANGE

LREM

LSET

LTRIM

RPOP

RPUSH

RPUSHX

PUBLISH

Publish messages to many clients

EVAL

EVELSHA

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.

PSETEX

Set the value and expiration in milliseconds of a key.

SET

Set the string value of a key.

SETEX

Set the value and expiration of a key.

SETNX

Set the value of a key, only if the key does not exist.

SETRANGE

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

STRLEN

Get the length of the value stored in a key.

SUBSTR

Get a substring of the string stored at a key.

TRANSACTION

Run multiple commands in a transaction.

Was this page helpful?

Suggest editsRaise issue
FeaturesECHO
twittergithubdiscord
Powered by Mintlify