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
A glob-style pattern. Use * to match all keys.
Response
Array of keys matching the pattern.
const keys = await redis.keys("prefix*");