If you have the Redis client installed, (you can find it in the package 'redis-tools'. On Debian/Ubuntu), you can use the following command:
redis-cli info keyspace
To show all your available databases. Then use:
redis-cli -n 0 --scan --pattern '*'
To list keys matching your search pattern, the -n 0
parameter specifies which database to use. To clear out a key space, simply run:
redis-cli -n 0 flushdb