tests

package
v0.0.0-...-41babec Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTest = errors.New("TEST ERROR")

Functions

func TestCache1SetAndGet

func TestCache1SetAndGet(t *testing.T, d cachery.Driver)

func TestCache2SetAndGet

func TestCache2SetAndGet(t *testing.T, d cachery.Driver)

func TestInvalidate

func TestInvalidate(t *testing.T, d1, d2 cachery.Driver)

Types

type CacheFetcher

type CacheFetcher struct {
	Values map[interface{}]interface{}

	sync.Mutex
	// contains filtered or unexported fields
}

func (*CacheFetcher) Calls

func (f *CacheFetcher) Calls() int

func (*CacheFetcher) Fetch

func (f *CacheFetcher) Fetch(key interface{}) (interface{}, error)

Jump to

Keyboard shortcuts

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