cache

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ICache

type ICache interface {
	Get(key string) (string, error)
	Set(key string, val string) error
	Delete(key string) error
	Has(key string) bool
}

func NewFileCache

func NewFileCache(workdir string) ICache

type MockCache

type MockCache struct {
	Get_    func(key string) (string, error)
	Set_    func(key string, val string) error
	Has_    func(key string) bool
	Delete_ func(key string) error
}

func (*MockCache) Delete

func (m *MockCache) Delete(key string) error

func (*MockCache) Get

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

func (*MockCache) Has

func (m *MockCache) Has(key string) bool

func (*MockCache) Set

func (m *MockCache) Set(key string, val string) error

Jump to

Keyboard shortcuts

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