# Get all keys cursor = 0 results = [] while True: cursor, keys = redis.scan(cursor, match="*") results.extend(keys) if cursor == 0: break
Scan the database for keys.
0
string
hash
set
zset
list
stream
Was this page helpful?