mocks

package
v6.5.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: AGPL-3.0, Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	mock.Mock
}

Cache is an autogenerated mock type for the Cache type

func (*Cache) Get

func (_m *Cache) Get(key string, value interface{}) error

Get provides a mock function with given fields: key, value

func (*Cache) GetInvalidateClusterEvent

func (_m *Cache) GetInvalidateClusterEvent() string

GetInvalidateClusterEvent provides a mock function with given fields:

func (*Cache) Keys

func (_m *Cache) Keys() ([]string, error)

Keys provides a mock function with given fields:

func (*Cache) Len

func (_m *Cache) Len() (int, error)

Len provides a mock function with given fields:

func (*Cache) Name

func (_m *Cache) Name() string

Name provides a mock function with given fields:

func (*Cache) Purge

func (_m *Cache) Purge() error

Purge provides a mock function with given fields:

func (*Cache) Remove

func (_m *Cache) Remove(key string) error

Remove provides a mock function with given fields: key

func (*Cache) Set

func (_m *Cache) Set(key string, value interface{}) error

Set provides a mock function with given fields: key, value

func (*Cache) SetWithDefaultExpiry

func (_m *Cache) SetWithDefaultExpiry(key string, value interface{}) error

SetWithDefaultExpiry provides a mock function with given fields: key, value

func (*Cache) SetWithExpiry

func (_m *Cache) SetWithExpiry(key string, value interface{}, ttl time.Duration) error

SetWithExpiry provides a mock function with given fields: key, value, ttl

type Provider

type Provider struct {
	mock.Mock
}

Provider is an autogenerated mock type for the Provider type

func (*Provider) Close

func (_m *Provider) Close() error

Close provides a mock function with given fields:

func (*Provider) Connect

func (_m *Provider) Connect() error

Connect provides a mock function with given fields:

func (*Provider) NewCache

func (_m *Provider) NewCache(opts *cache.CacheOptions) (cache.Cache, error)

NewCache provides a mock function with given fields: opts

Jump to

Keyboard shortcuts

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