# Upstash Redis ## Docs - [Error Handling](https://mintlify.wiki/upstash/redis-js/advanced/error-handling.md): Understanding and handling errors in the Upstash Redis SDK - [Lua Scripts](https://mintlify.wiki/upstash/redis-js/advanced/lua-scripts.md): Execute Lua scripts with eval, evalsha, fcall and the Script helper classes - [Pub/Sub](https://mintlify.wiki/upstash/redis-js/advanced/pub-sub.md): Real-time messaging with Redis pub/sub channels and pattern subscriptions - [Telemetry](https://mintlify.wiki/upstash/redis-js/advanced/telemetry.md): Understanding and configuring telemetry data collection in Upstash Redis SDK - [Transactions](https://mintlify.wiki/upstash/redis-js/advanced/transactions.md): Execute multiple commands atomically using MULTI/EXEC transactions - [append](https://mintlify.wiki/upstash/redis-js/api/commands/append.md): Append a value to a key - [dbsize](https://mintlify.wiki/upstash/redis-js/api/commands/dbsize.md): Get the number of keys in the database - [decr](https://mintlify.wiki/upstash/redis-js/api/commands/decr.md): Decrement the integer value of a key by one - [del](https://mintlify.wiki/upstash/redis-js/api/commands/del.md): Delete one or more keys - [echo](https://mintlify.wiki/upstash/redis-js/api/commands/echo.md): Echo a message - [EVAL](https://mintlify.wiki/upstash/redis-js/api/commands/eval.md): Execute a Lua script on the Redis server - [EVALSHA](https://mintlify.wiki/upstash/redis-js/api/commands/evalsha.md): Execute a cached Lua script by its SHA-1 hash - [exists](https://mintlify.wiki/upstash/redis-js/api/commands/exists.md): Check if one or more keys exist - [expire](https://mintlify.wiki/upstash/redis-js/api/commands/expire.md): Set a key's time to live in seconds - [FCALL](https://mintlify.wiki/upstash/redis-js/api/commands/fcall.md): Call a Redis function by name - [flushdb](https://mintlify.wiki/upstash/redis-js/api/commands/flushdb.md): Delete all keys in the current database - [geoadd](https://mintlify.wiki/upstash/redis-js/api/commands/geoadd.md): Add one or more geospatial items to a key - [geodist](https://mintlify.wiki/upstash/redis-js/api/commands/geodist.md): Get the distance between two geospatial members - [geohash](https://mintlify.wiki/upstash/redis-js/api/commands/geohash.md): Get Geohash strings representing positions of members - [geopos](https://mintlify.wiki/upstash/redis-js/api/commands/geopos.md): Get longitude and latitude coordinates of members - [geosearch](https://mintlify.wiki/upstash/redis-js/api/commands/geosearch.md): Search for members within a geographic area - [get](https://mintlify.wiki/upstash/redis-js/api/commands/get.md): Get the value of a key - [getrange](https://mintlify.wiki/upstash/redis-js/api/commands/getrange.md): Get a substring of the string stored at a key - [HDEL](https://mintlify.wiki/upstash/redis-js/api/commands/hdel.md): Delete one or more hash fields - [HEXISTS](https://mintlify.wiki/upstash/redis-js/api/commands/hexists.md): Check if a hash field exists - [HGET](https://mintlify.wiki/upstash/redis-js/api/commands/hget.md): Get the value of a hash field - [HGETALL](https://mintlify.wiki/upstash/redis-js/api/commands/hgetall.md): Get all fields and values in a hash - [HINCRBY](https://mintlify.wiki/upstash/redis-js/api/commands/hincrby.md): Increment a hash field by a number - [HKEYS](https://mintlify.wiki/upstash/redis-js/api/commands/hkeys.md): Get all field names in a hash - [HMGET](https://mintlify.wiki/upstash/redis-js/api/commands/hmget.md): Get multiple hash field values - [HMSET](https://mintlify.wiki/upstash/redis-js/api/commands/hmset.md): Set multiple hash fields (legacy) - [HSET](https://mintlify.wiki/upstash/redis-js/api/commands/hset.md): Set hash field values - [HVALS](https://mintlify.wiki/upstash/redis-js/api/commands/hvals.md): Get all values in a hash - [incr](https://mintlify.wiki/upstash/redis-js/api/commands/incr.md): Increment the integer value of a key by one - [JSON.ARRAPPEND](https://mintlify.wiki/upstash/redis-js/api/commands/json-arrappend.md): Append values to a JSON array - [JSON.ARRINDEX](https://mintlify.wiki/upstash/redis-js/api/commands/json-arrindex.md): Find the index of a value in a JSON array - [JSON.DEL](https://mintlify.wiki/upstash/redis-js/api/commands/json-del.md): Delete JSON values from Redis - [JSON.GET](https://mintlify.wiki/upstash/redis-js/api/commands/json-get.md): Get JSON values from a Redis key - [JSON.NUMINCRBY](https://mintlify.wiki/upstash/redis-js/api/commands/json-numincrby.md): Increment a number in a JSON document - [JSON.OBJKEYS](https://mintlify.wiki/upstash/redis-js/api/commands/json-objkeys.md): Get the keys of a JSON object - [JSON.SET](https://mintlify.wiki/upstash/redis-js/api/commands/json-set.md): Set JSON values in Redis - [keys](https://mintlify.wiki/upstash/redis-js/api/commands/keys.md): Find all keys matching a pattern - [LINDEX](https://mintlify.wiki/upstash/redis-js/api/commands/lindex.md): Get an element from a list by index - [LLEN](https://mintlify.wiki/upstash/redis-js/api/commands/llen.md): Get the length of a list - [LPOP](https://mintlify.wiki/upstash/redis-js/api/commands/lpop.md): Remove and return the first element(s) of a list - [LPUSH](https://mintlify.wiki/upstash/redis-js/api/commands/lpush.md): Insert elements at the head of a list - [LRANGE](https://mintlify.wiki/upstash/redis-js/api/commands/lrange.md): Get a range of elements from a list - [LSET](https://mintlify.wiki/upstash/redis-js/api/commands/lset.md): Set the value of an element in a list by index - [mget](https://mintlify.wiki/upstash/redis-js/api/commands/mget.md): Get the values of multiple keys - [mset](https://mintlify.wiki/upstash/redis-js/api/commands/mset.md): Set multiple keys to multiple values - [persist](https://mintlify.wiki/upstash/redis-js/api/commands/persist.md): Remove the expiration from a key - [ping](https://mintlify.wiki/upstash/redis-js/api/commands/ping.md): Test server connection - [RPOP](https://mintlify.wiki/upstash/redis-js/api/commands/rpop.md): Remove and return the last element(s) of a list - [RPUSH](https://mintlify.wiki/upstash/redis-js/api/commands/rpush.md): Insert elements at the tail of a list - [SADD](https://mintlify.wiki/upstash/redis-js/api/commands/sadd.md): Add one or more members to a set - [scan](https://mintlify.wiki/upstash/redis-js/api/commands/scan.md): Incrementally iterate over keys - [SCARD](https://mintlify.wiki/upstash/redis-js/api/commands/scard.md): Get the number of members in a set - [SCRIPT LOAD](https://mintlify.wiki/upstash/redis-js/api/commands/script-load.md): Load a Lua script into Redis without executing it - [SDIFF](https://mintlify.wiki/upstash/redis-js/api/commands/sdiff.md): Get the difference between sets - [set](https://mintlify.wiki/upstash/redis-js/api/commands/set.md): Set the string value of a key - [setrange](https://mintlify.wiki/upstash/redis-js/api/commands/setrange.md): Overwrite part of a string at a specific offset - [SINTER](https://mintlify.wiki/upstash/redis-js/api/commands/sinter.md): Get the intersection of multiple sets - [SISMEMBER](https://mintlify.wiki/upstash/redis-js/api/commands/sismember.md): Check if a member exists in a set - [SMEMBERS](https://mintlify.wiki/upstash/redis-js/api/commands/smembers.md): Get all members of a set - [SPOP](https://mintlify.wiki/upstash/redis-js/api/commands/spop.md): Remove and return one or more random members from a set - [SREM](https://mintlify.wiki/upstash/redis-js/api/commands/srem.md): Remove one or more members from a set - [SUNION](https://mintlify.wiki/upstash/redis-js/api/commands/sunion.md): Get the union of multiple sets - [time](https://mintlify.wiki/upstash/redis-js/api/commands/time.md): Get the server time - [ttl](https://mintlify.wiki/upstash/redis-js/api/commands/ttl.md): Get the time to live for a key in seconds - [type](https://mintlify.wiki/upstash/redis-js/api/commands/type.md): Determine the type of a key - [xadd](https://mintlify.wiki/upstash/redis-js/api/commands/xadd.md): Add a new entry to a stream - [xdel](https://mintlify.wiki/upstash/redis-js/api/commands/xdel.md): Delete entries from a stream by ID - [xlen](https://mintlify.wiki/upstash/redis-js/api/commands/xlen.md): Get the number of entries in a stream - [xrange](https://mintlify.wiki/upstash/redis-js/api/commands/xrange.md): Get a range of entries from a stream - [xread](https://mintlify.wiki/upstash/redis-js/api/commands/xread.md): Read entries from one or more streams - [ZADD](https://mintlify.wiki/upstash/redis-js/api/commands/zadd.md): Add one or more members to a sorted set, or update their scores - [ZCARD](https://mintlify.wiki/upstash/redis-js/api/commands/zcard.md): Get the number of members in a sorted set - [ZCOUNT](https://mintlify.wiki/upstash/redis-js/api/commands/zcount.md): Count the members in a sorted set within a score range - [ZINCRBY](https://mintlify.wiki/upstash/redis-js/api/commands/zincrby.md): Increment the score of a member in a sorted set - [ZRANGE](https://mintlify.wiki/upstash/redis-js/api/commands/zrange.md): Return a range of members in a sorted set - [ZRANK](https://mintlify.wiki/upstash/redis-js/api/commands/zrank.md): Determine the index of a member in a sorted set - [ZREM](https://mintlify.wiki/upstash/redis-js/api/commands/zrem.md): Remove one or more members from a sorted set - [ZSCORE](https://mintlify.wiki/upstash/redis-js/api/commands/zscore.md): Get the score associated with a member in a sorted set - [Pipeline](https://mintlify.wiki/upstash/redis-js/api/pipeline.md): Batch multiple Redis commands for better performance - [Redis](https://mintlify.wiki/upstash/redis-js/api/redis.md): Main Redis client class for interacting with Upstash Redis - [Script / ScriptRO](https://mintlify.wiki/upstash/redis-js/api/script.md): Execute Lua scripts efficiently with automatic SHA-1 caching - [Auto-pipeline](https://mintlify.wiki/upstash/redis-js/concepts/auto-pipeline.md): Automatically batch Redis commands for optimal performance without manual pipeline management - [Client configuration](https://mintlify.wiki/upstash/redis-js/concepts/client-configuration.md): Configure the Upstash Redis client with connection credentials, retry behavior, and advanced options - [Connection model](https://mintlify.wiki/upstash/redis-js/concepts/connection.md): Understand the HTTP-based connectionless architecture and how it differs from traditional TCP connections - [Pipeline](https://mintlify.wiki/upstash/redis-js/concepts/pipeline.md): Batch multiple Redis commands into a single HTTP request for improved performance - [Read-your-writes consistency](https://mintlify.wiki/upstash/redis-js/concepts/read-your-writes.md): Ensure your Redis reads reflect your own writes with Upstash's read-your-writes consistency model - [AWS Lambda](https://mintlify.wiki/upstash/redis-js/examples/aws-lambda.md): Deploy Upstash Redis with AWS Lambda functions - [Basic Usage](https://mintlify.wiki/upstash/redis-js/examples/basic-usage.md): Common Redis operations with the Upstash Redis SDK - [Cloudflare Workers](https://mintlify.wiki/upstash/redis-js/examples/cloudflare-workers.md): Use Upstash Redis with Cloudflare Workers at the edge - [Next.js](https://mintlify.wiki/upstash/redis-js/examples/next-js.md): Integrate Upstash Redis with Next.js applications - [Installation](https://mintlify.wiki/upstash/redis-js/installation.md): Install Upstash Redis SDK for your platform and package manager - [Upstash Redis SDK](https://mintlify.wiki/upstash/redis-js/introduction.md): HTTP-based Redis client for serverless and edge environments - [Cloudflare Workers](https://mintlify.wiki/upstash/redis-js/platforms/cloudflare-workers.md): Use Upstash Redis SDK in Cloudflare Workers - [Deno](https://mintlify.wiki/upstash/redis-js/platforms/deno.md): Use Upstash Redis SDK in Deno and Deno Deploy - [Fastly Compute@Edge](https://mintlify.wiki/upstash/redis-js/platforms/fastly.md): Use Upstash Redis SDK with Fastly Compute@Edge - [Node.js](https://mintlify.wiki/upstash/redis-js/platforms/nodejs.md): Use Upstash Redis SDK in Node.js applications - [Vercel](https://mintlify.wiki/upstash/redis-js/platforms/vercel.md): Use Upstash Redis SDK with Vercel Functions and Edge Functions - [Quick Start](https://mintlify.wiki/upstash/redis-js/quickstart.md): Get started with Upstash Redis in under 5 minutes