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.

Arguments

match
str
required

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

Response

Array of keys matching the pattern.