valkey

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoURL  = errors.New("valkey.Config: no URL defined")
	ErrBadURL = errors.New("valkey.Config: URL is invalid")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	URL string `json:"url"`
}

func (Config) Valid

func (c Config) Valid() error

type Factory

type Factory struct{}

func (Factory) Build

func (Factory) Build(ctx context.Context, data json.RawMessage) (store.Interface, error)

func (Factory) Valid

func (Factory) Valid(data json.RawMessage) error

type Store

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

func (*Store) Delete

func (s *Store) Delete(ctx context.Context, key string) error

func (*Store) Get

func (s *Store) Get(ctx context.Context, key string) ([]byte, error)

func (*Store) Set

func (s *Store) Set(ctx context.Context, key string, value []byte, expiry time.Duration) error

Jump to

Keyboard shortcuts

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