9951 explained code solutions for 126 technologies
r = redis.Redis() all_keys = r.keys('pattern')ctrl + cgithub
r = redis.Redis() all_keys = r.keys('pattern')
redis.Redis
connect to Redis server
r.keys
get all keys from Redis that match specified pattern
pattern
pattern to use for key search
import redis r = redis.Redis() print(r.keys('test*'))
[b'test2', b'test']