rds

package
v0.0.0-...-0453e60 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotFoundErr = fmt.Errorf("redis store: data item is not found")

NotFoundErr indicates item is not found in redis.

Functions

This section is empty.

Types

type Provider

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

Provider based on redis.

func New

func New() *Provider

New a redis provider.

func (*Provider) DeUnique

func (p *Provider) DeUnique(key string) error

DeUnique implements store.Provider.

func (*Provider) GetResult

func (p *Provider) GetResult(key *data.Key) (*data.Item, error)

GetResult implements store.Provider.

func (*Provider) SaveResult

func (p *Provider) SaveResult(key *data.Key, dt *data.Item) error

SaveResult implements store.Provider.

func (*Provider) Unique

func (p *Provider) Unique(key string) error

Unique implements store.Provider.

Jump to

Keyboard shortcuts

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