Returns all keys matching pattern.
keys = redis.keys("prefix*")
This command may block the DB for a long time, depending on its size. We advice against using it in production. Use SCAN instead.
A glob-style pattern. Use * to match all keys.
*
Array of keys matching the pattern.
Was this page helpful?