mock

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCache

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

func NewMockCache

func NewMockCache() *MockCache

func (*MockCache) AddDelErr

func (r *MockCache) AddDelErr(key string, err error)

func (*MockCache) AddGetErr

func (r *MockCache) AddGetErr(key string, err error)

func (*MockCache) AddSetErr

func (r *MockCache) AddSetErr(key string, err error)

func (*MockCache) AddSetsErr

func (r *MockCache) AddSetsErr(key string, err error)

func (*MockCache) Del

func (r *MockCache) Del(key string) error

func (*MockCache) DelSetsErr

func (r *MockCache) DelSetsErr(key string)

func (*MockCache) Exists

func (r *MockCache) Exists(ks ...string) (int, error)

func (*MockCache) Get

func (r *MockCache) Get(key string) (string, error)

func (*MockCache) GetDel

func (r *MockCache) GetDel(key string) (string, error)

func (*MockCache) SAdd

func (r *MockCache) SAdd(set string, key string) error

func (*MockCache) SIsmember

func (r *MockCache) SIsmember(set string, key string) (bool, error)

func (*MockCache) Set

func (r *MockCache) Set(key string, value string, expiration time.Duration) error

Jump to

Keyboard shortcuts

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