Versions in this module Expand all Collapse all v4 v4.1.8 Oct 4, 2024 Changes in this version + type Codec struct + func New(store store.StoreInterface) *Codec + func (c *Codec) Clear(ctx context.Context) error + func (c *Codec) Delete(ctx context.Context, key any) error + func (c *Codec) Get(ctx context.Context, key any) (any, error) + func (c *Codec) GetStats() *Stats + func (c *Codec) GetStore() store.StoreInterface + func (c *Codec) GetWithTTL(ctx context.Context, key any) (any, time.Duration, error) + func (c *Codec) Invalidate(ctx context.Context, options ...store.InvalidateOption) error + func (c *Codec) Set(ctx context.Context, key any, value any, options ...store.Option) error + type CodecInterface interface + Clear func(ctx context.Context) error + Delete func(ctx context.Context, key any) error + Get func(ctx context.Context, key any) (any, error) + GetStats func() *Stats + GetStore func() store.StoreInterface + GetWithTTL func(ctx context.Context, key any) (any, time.Duration, error) + Invalidate func(ctx context.Context, options ...store.InvalidateOption) error + Set func(ctx context.Context, key any, value any, options ...store.Option) error + type MockCodecInterface struct + func NewMockCodecInterface(ctrl *gomock.Controller) *MockCodecInterface + func (m *MockCodecInterface) Clear(ctx context.Context) error + func (m *MockCodecInterface) Delete(ctx context.Context, key any) error + func (m *MockCodecInterface) EXPECT() *MockCodecInterfaceMockRecorder + func (m *MockCodecInterface) Get(ctx context.Context, key any) (any, error) + func (m *MockCodecInterface) GetStats() *Stats + func (m *MockCodecInterface) GetStore() store.StoreInterface + func (m *MockCodecInterface) GetWithTTL(ctx context.Context, key any) (any, time.Duration, error) + func (m *MockCodecInterface) Invalidate(ctx context.Context, options ...store.InvalidateOption) error + func (m *MockCodecInterface) Set(ctx context.Context, key, value any, options ...store.Option) error + type MockCodecInterfaceMockRecorder struct + func (mr *MockCodecInterfaceMockRecorder) Clear(ctx interface{}) *gomock.Call + func (mr *MockCodecInterfaceMockRecorder) Delete(ctx, key interface{}) *gomock.Call + func (mr *MockCodecInterfaceMockRecorder) Get(ctx, key interface{}) *gomock.Call + func (mr *MockCodecInterfaceMockRecorder) GetStats() *gomock.Call + func (mr *MockCodecInterfaceMockRecorder) GetStore() *gomock.Call + func (mr *MockCodecInterfaceMockRecorder) GetWithTTL(ctx, key interface{}) *gomock.Call + func (mr *MockCodecInterfaceMockRecorder) Invalidate(ctx interface{}, options ...interface{}) *gomock.Call + func (mr *MockCodecInterfaceMockRecorder) Set(ctx, key, value interface{}, options ...interface{}) *gomock.Call + type Stats struct + ClearError int + ClearSuccess int + DeleteError int + DeleteSuccess int + Hits int + InvalidateError int + InvalidateSuccess int + Miss int + SetError int + SetSuccess int