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)
Click to show internal directories.
Click to hide internal directories.