redisync

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 27, 2021 License: MIT Imports: 4 Imported by: 0

README

Sync redis

Usage

Sync redis keys and values

Usage: redisync [option...]

Options:
  -da string
    	Password for Destination Redis authentication
  -dc uint
    	Destination Redis db
  -dh string
    	Destination Redis host (default "0.0.0.0")
  -dp string
    	Destination Redis port (default "6379")
  -sa string
    	Password for Source Redis authentication
  -sc uint
    	Source Redis db
  -sh string
    	Source Redis host (default "127.0.0.1")
  -sp string
    	Source Redis port (default "6379")

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Source, Destination *redis.Client
)

Functions

func NewRdb

func NewRdb(addr, port, auth string, db uint) *redis.Client

func Sync

func Sync()

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL