redis

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkpoint

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

Checkpoint implements a KV store to keep track of processing checkpoints.

func NewCheckpoint

func NewCheckpoint(redis *redis.Client) Checkpoint

NewCheckpoint creates a new checkpoint storage.

func (Checkpoint) Get

func (c Checkpoint) Get(key string) (string, error)

Get the key/value.

func (Checkpoint) Set

func (c Checkpoint) Set(key, value string) error

Set the key/value.

Jump to

Keyboard shortcuts

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