Skip to content
masterclass Buddy

Upstash · Method

redis.scan

SCAN walks through Redis keys in small, incremental calls. Continue until the returned cursor is 0; use MATCH, COUNT, and TYPE to control the scan.

Last updated

Syntax

SCAN <cursor> [MATCH <pattern>] [COUNT <count>] [TYPE <type>]

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • HSCAN
  • SSCAN
  • ZSCAN
  • KEYS
  • UNLINK

Source: SCAN - Upstash Documentation. Checked 2026-11-03.