mock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mock

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

func New

func New() *Mock

func (*Mock) Delete

func (s *Mock) Delete(key string) error

func (*Mock) Get

func (s *Mock) Get(key string) ([]byte, error)

func (*Mock) List

func (a *Mock) List(prefix string) ([]string, error)

func (*Mock) Set

func (s *Mock) Set(key string, value []byte, ttl int) error

Jump to

Keyboard shortcuts

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