Skip to content

Instantly share code, notes, and snippets.

View manojrege's full-sized avatar

Manoj R. Rege manojrege

  • EMnify GmbH
  • Berlin, DE
View GitHub Profile
@josegonzalez
josegonzalez / redis_migrate.py
Last active December 31, 2024 00:23 — 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