orgs

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisClient

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

func NewRedisClient added in v1.4.0

func NewRedisClient(ctx context.Context, opts *RedisOptions, orgs []string, dir string) RedisClient

func (*RedisClient) DumpOrgKeys added in v1.4.0

func (r *RedisClient) DumpOrgKeys(orgs []string, patterns []string, batchSize int64)

DumpOrgKeys is suited to run in prod. Just one goroutine per org to write the output file. The run time is about 3x that of the threaded version

func (*RedisClient) RestoreKeys added in v1.4.0

func (r *RedisClient) RestoreKeys(dumpFile string)

type RedisOptions added in v1.4.0

type RedisOptions struct {
	Addrs      []string
	MasterName string
	MaxRetries int
	BatchSize  int64
}

Jump to

Keyboard shortcuts

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