Help us shape the future of Go! Take the 2026 Go Developer Survey

cache

package
v4.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacheInterface

type MockCacheInterface[T any] struct {
	// contains filtered or unexported fields
}

MockCacheInterface is a mock of CacheInterface interface.

func NewMockCacheInterface

func NewMockCacheInterface[T any](ctrl *gomock.Controller) *MockCacheInterface[T]

NewMockCacheInterface creates a new mock instance.

func (*MockCacheInterface[T]) Clear

func (m *MockCacheInterface[T]) Clear(ctx context.Context) error

Clear mocks base method.

func (*MockCacheInterface[T]) Delete

func (m *MockCacheInterface[T]) Delete(ctx context.Context, key any) error

Delete mocks base method.

func (*MockCacheInterface[T]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCacheInterface[T]) Get

func (m *MockCacheInterface[T]) Get(ctx context.Context, key any) (T, error)

Get mocks base method.

func (*MockCacheInterface[T]) GetType

func (m *MockCacheInterface[T]) GetType() string

GetType mocks base method.

func (*MockCacheInterface[T]) Invalidate

func (m *MockCacheInterface[T]) Invalidate(ctx context.Context, options ...store.InvalidateOption) error

Invalidate mocks base method.

func (*MockCacheInterface[T]) Set

func (m *MockCacheInterface[T]) Set(ctx context.Context, key any, object T, options ...store.Option) error

Set mocks base method.

type MockCacheInterfaceMockRecorder

type MockCacheInterfaceMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockCacheInterfaceMockRecorder is the mock recorder for MockCacheInterface.

func (*MockCacheInterfaceMockRecorder[T]) Clear

func (mr *MockCacheInterfaceMockRecorder[T]) Clear(ctx any) *gomock.Call

Clear indicates an expected call of Clear.

func (*MockCacheInterfaceMockRecorder[T]) Delete

func (mr *MockCacheInterfaceMockRecorder[T]) Delete(ctx, key any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacheInterfaceMockRecorder[T]) Get

func (mr *MockCacheInterfaceMockRecorder[T]) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheInterfaceMockRecorder[T]) GetType

func (mr *MockCacheInterfaceMockRecorder[T]) GetType() *gomock.Call

GetType indicates an expected call of GetType.

func (*MockCacheInterfaceMockRecorder[T]) Invalidate

func (mr *MockCacheInterfaceMockRecorder[T]) Invalidate(ctx any, options ...any) *gomock.Call

Invalidate indicates an expected call of Invalidate.

func (*MockCacheInterfaceMockRecorder[T]) Set

func (mr *MockCacheInterfaceMockRecorder[T]) Set(ctx, key, object any, options ...any) *gomock.Call

Set indicates an expected call of Set.

type MockCacheKeyGenerator

type MockCacheKeyGenerator struct {
	// contains filtered or unexported fields
}

MockCacheKeyGenerator is a mock of CacheKeyGenerator interface.

func NewMockCacheKeyGenerator

func NewMockCacheKeyGenerator(ctrl *gomock.Controller) *MockCacheKeyGenerator

NewMockCacheKeyGenerator creates a new mock instance.

func (*MockCacheKeyGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCacheKeyGenerator) GetCacheKey

func (m *MockCacheKeyGenerator) GetCacheKey() string

GetCacheKey mocks base method.

type MockCacheKeyGeneratorMockRecorder

type MockCacheKeyGeneratorMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacheKeyGeneratorMockRecorder is the mock recorder for MockCacheKeyGenerator.

func (*MockCacheKeyGeneratorMockRecorder) GetCacheKey

func (mr *MockCacheKeyGeneratorMockRecorder) GetCacheKey() *gomock.Call

GetCacheKey indicates an expected call of GetCacheKey.

type MockSetterCacheInterface

type MockSetterCacheInterface[T any] struct {
	// contains filtered or unexported fields
}

MockSetterCacheInterface is a mock of SetterCacheInterface interface.

func NewMockSetterCacheInterface

func NewMockSetterCacheInterface[T any](ctrl *gomock.Controller) *MockSetterCacheInterface[T]

NewMockSetterCacheInterface creates a new mock instance.

func (*MockSetterCacheInterface[T]) Clear

func (m *MockSetterCacheInterface[T]) Clear(ctx context.Context) error

Clear mocks base method.

func (*MockSetterCacheInterface[T]) Delete

func (m *MockSetterCacheInterface[T]) Delete(ctx context.Context, key any) error

Delete mocks base method.

func (*MockSetterCacheInterface[T]) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSetterCacheInterface[T]) Get

func (m *MockSetterCacheInterface[T]) Get(ctx context.Context, key any) (T, error)

Get mocks base method.

func (*MockSetterCacheInterface[T]) GetCodec

GetCodec mocks base method.

func (*MockSetterCacheInterface[T]) GetType

func (m *MockSetterCacheInterface[T]) GetType() string

GetType mocks base method.

func (*MockSetterCacheInterface[T]) GetWithTTL

func (m *MockSetterCacheInterface[T]) GetWithTTL(ctx context.Context, key any) (T, time.Duration, error)

GetWithTTL mocks base method.

func (*MockSetterCacheInterface[T]) Invalidate

func (m *MockSetterCacheInterface[T]) Invalidate(ctx context.Context, options ...store.InvalidateOption) error

Invalidate mocks base method.

func (*MockSetterCacheInterface[T]) Set

func (m *MockSetterCacheInterface[T]) Set(ctx context.Context, key any, object T, options ...store.Option) error

Set mocks base method.

type MockSetterCacheInterfaceMockRecorder

type MockSetterCacheInterfaceMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockSetterCacheInterfaceMockRecorder is the mock recorder for MockSetterCacheInterface.

func (*MockSetterCacheInterfaceMockRecorder[T]) Clear

Clear indicates an expected call of Clear.

func (*MockSetterCacheInterfaceMockRecorder[T]) Delete

func (mr *MockSetterCacheInterfaceMockRecorder[T]) Delete(ctx, key any) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockSetterCacheInterfaceMockRecorder[T]) Get

func (mr *MockSetterCacheInterfaceMockRecorder[T]) Get(ctx, key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockSetterCacheInterfaceMockRecorder[T]) GetCodec

GetCodec indicates an expected call of GetCodec.

func (*MockSetterCacheInterfaceMockRecorder[T]) GetType

GetType indicates an expected call of GetType.

func (*MockSetterCacheInterfaceMockRecorder[T]) GetWithTTL

func (mr *MockSetterCacheInterfaceMockRecorder[T]) GetWithTTL(ctx, key any) *gomock.Call

GetWithTTL indicates an expected call of GetWithTTL.

func (*MockSetterCacheInterfaceMockRecorder[T]) Invalidate

func (mr *MockSetterCacheInterfaceMockRecorder[T]) Invalidate(ctx any, options ...any) *gomock.Call

Invalidate indicates an expected call of Invalidate.

func (*MockSetterCacheInterfaceMockRecorder[T]) Set

func (mr *MockSetterCacheInterfaceMockRecorder[T]) Set(ctx, key, object any, options ...any) *gomock.Call

Set indicates an expected call of Set.

Jump to

Keyboard shortcuts

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