mocks

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheFlusherMock

type CacheFlusherMock struct {
	EvictAllCall         func()
	EvictCall            func(key string)
	EvictBySurrogateCall func(surrogate string)
}

CacheFlusherMock implements the CacheFlusher interface

func (*CacheFlusherMock) Evict

func (c *CacheFlusherMock) Evict(key string)

Evict a single entry

func (*CacheFlusherMock) EvictAll

func (c *CacheFlusherMock) EvictAll()

EvictAll clears all the cahed entries

func (*CacheFlusherMock) EvictBySurrogate

func (c *CacheFlusherMock) EvictBySurrogate(key string)

EvictBySurrogate keys referenced by a surrogate

Jump to

Keyboard shortcuts

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