store

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisStore

func NewRedisStore(rdb *redis.Client) *redisStore

Types

type InvalidTypeError

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

func (InvalidTypeError) Error

func (i InvalidTypeError) Error() string

type Store

type Store interface {
	GetKey(ctx context.Context, key string, v any) error
	SetKey(ctx context.Context, key string, v any) error
}

Store : Provides a storage interface for segmenter key value store

Jump to

Keyboard shortcuts

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