cache

package
v0.0.0-...-39d8f80 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 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 FakeCache

type FakeCache struct {
	mock.Mock
}

func NewFakeCache

func NewFakeCache(expiration, cleanup time.Duration) *FakeCache

func (*FakeCache) Get

func (g *FakeCache) Get(k string) (interface{}, bool)

func (*FakeCache) Set

func (g *FakeCache) Set(k string, v interface{}) error

type Provider

type Provider interface {
	Set(k string, v interface{}) error
	Get(k string) (interface{}, bool)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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