rediscopy

package module
v0.0.0-...-65e25c8 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

Usage

redis-copy -skey=samplePrefix::1E -dkey=samplePrefix-server::1E -type=other -s=sample.source.domain.com:6379

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Copier

type Copier struct {
	// contains filtered or unexported fields
}

Copier - Main struct which copies data

func NewCopier

func NewCopier(server, client *redis.Client) *Copier

func (*Copier) CopyKeyValue

func (cp *Copier) CopyKeyValue(sourceKey, targetKey string) error

CopyKeyValue - Copy a key value from production to local instance. Right now copy everything in one instance, later it should be done in batches so that we do not put a lot of load on our Redis instance

func (*Copier) CopySortedSet

func (cp *Copier) CopySortedSet(sortedSetSource, sortedSetTarget string) error

CopySortedSet - Copy a sorted set from production to local instance. Right now copy everything in one instance, later it should be done in batches so that we do not put a lot of load on our Redis instance

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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