Skip to content

Instantly share code, notes, and snippets.

View ragboy's full-sized avatar

ragboy

View GitHub Profile
@ragboy
ragboy / redis_migrate.py
Created September 27, 2017 06:57 — forked from iserko/redis_migrate.py
A simple script to migrate all keys from one Redis to another
#!/usr/bin/env python
import argparse
import redis
def connect_redis(conn_dict):
conn = redis.StrictRedis(host=conn_dict['host'],
port=conn_dict['port'],
db=conn_dict['db'])
return conn