redisio

package
v0.0.0-...-223fbb0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(
	scope beam.Scope,
	cfg ReadConfig,
	elemType reflect.Type,
) beam.PCollection

func ReadKV

func ReadKV(
	scope beam.Scope,
	cfg ReadConfig,
) beam.PCollection

func Write

func Write(
	scope beam.Scope,
	cfg WriteConfig,
	col beam.PCollection,
)

func WriteKV

func WriteKV(
	scope beam.Scope,
	cfg WriteKVConfig,
	col beam.PCollection,
)

Types

type ReadConfig

type ReadConfig struct {
	URL         string
	KeyPatterns []string
	BatchSize   int
}

type WriteConfig

type WriteConfig struct {
	URL        string
	Expiration time.Duration
	BatchSize  int
	KeyField   string
}

type WriteKVConfig

type WriteKVConfig struct {
	URL        string
	Expiration time.Duration
	BatchSize  int
}

Jump to

Keyboard shortcuts

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