Inspired by redis-rdb-tools
See http://rdbtools3.readthedocs.org/
from rdbtools3 import parse_rdb_stream
with open('/path/to/redis/dump.rdb', 'rb') as f:
for item in parse_rdb_stream(f):
print(item.key, item.value)
Inspired by redis-rdb-tools
See http://rdbtools3.readthedocs.org/
from rdbtools3 import parse_rdb_stream
with open('/path/to/redis/dump.rdb', 'rb') as f:
for item in parse_rdb_stream(f):
print(item.key, item.value)