Overview
Available Commands in @upstash/redis
Bitmap
Count set bits in a string.
Perform bitwise operations between strings (includes DIFF, DIFF1, ANDOR, ONE).
Find first bit set or clear in a string.
Returns the bit value at offset in the string value stored at key.
Sets or clears the bit at offset in the string value stored at key.
Functions
Invoke a redis function.
Invoke a read-only redis function.
Delete a library and all its functions.
Delete all the libraries and functions.
List information about all the libraries.
Load a library to Redis.
Returns the number of registered functions and libraries.
Generic
Delete one or multiple keys.
Determine if a key exists.
Set a key's time to live in seconds.
Set the expiration for a key as a UNIX timestamp.
Find all keys matching the given pattern.
Remove the expiration from a key.
Set a key's time to live in milliseconds.
Set the expiration for a key as a UNIX timestamp specified in milliseconds.
Get the time to live for a key in milliseconds.
Return a random key from the keyspace.
Rename a key.
Rename a key, only if the new key does not exist.
Incrementally iterate the keys space.
Alters the last access time of a key(s). Returns the number of existing keys specified.
Get the time to live for a key.
Determine the type stored at key.
Delete one or more keys.
Hash
Get and delete hash fields atomically.
Get hash fields with expiration support.
Set hash fields with expiration support.
JSON
Set
Sorted Set
Stream
String
Append a value to a string stored at key.
Decrement the integer value of a key by one.
Decrement the integer value of a key by the given number.
Get the value of a key.
Get the value of a key and delete the key.
Get a substring of the string stored at a key.
Set the string value of a key and return its old value.
Increment the integer value of a key by one.
Increment the integer value of a key by the given amount.
Increment the float value of a key by the given amount.
Get the values of all the given keys.
Set multiple keys to multiple values.
Set multiple keys to multiple values, only if none of the keys exist.
Set the string value of a key.
Overwrite part of a string at key starting at the specified offset.
Get the length of the value stored in a key.
Stream
Acknowledge one or multiple messages as processed for a consumer group.
Acknowledge and delete stream entries atomically.
Append a new entry to a stream (supports auto sequence numbers).
Transfer ownership of pending messages to another consumer automatically.
Transfer ownership of pending messages to another consumer.
Remove one or multiple entries from a stream.
Extended delete for streams with reference control.
Manage consumer groups for Redis streams.
Get information about streams, consumer groups, and consumers.
Get the number of entries in a stream.
Get information about pending messages in a consumer group.
Get entries from a stream within a range of IDs.
Read data from one or multiple streams.
Read data from streams as part of a consumer group.
Get entries from a stream within a range of IDs in reverse order.
Trim a stream to a specified size.