Skip to main content
This command can block the database for an extended period, especially with large datasets. We recommend using SCAN instead for production environments.This command will return an error for databases containing more than 100,000 entries.

Arguments

match
str
required
A glob-style pattern. Use * to match all keys.

Response

Array of keys matching the pattern.
keys = redis.keys("prefix*")