Versions in this module Expand all Collapse all v0 v0.0.2 Oct 16, 2024 v0.0.1 Oct 13, 2024 Changes in this version + const FreecacheTagPattern + const FreecacheType + type FreecacheClientInterface interface + Clear func() + Del func(key []byte) (affected bool) + DelInt func(key int64) (affected bool) + Get func(key []byte) (value []byte, err error) + GetInt func(key int64) (value []byte, err error) + Set func(key, value []byte, expireSeconds int) (err error) + SetInt func(key int64, value []byte, expireSeconds int) (err error) + TTL func(key []byte) (timeLeft uint32, err error) + type FreecacheStore struct + func NewFreecache(client FreecacheClientInterface, options ...lib_store.Option) *FreecacheStore + func (f *FreecacheStore) Clear(_ context.Context) error + func (f *FreecacheStore) Delete(_ context.Context, key any) error + func (f *FreecacheStore) Get(_ context.Context, key any) (any, error) + func (f *FreecacheStore) GetType() string + func (f *FreecacheStore) GetWithTTL(_ context.Context, key any) (any, time.Duration, error) + func (f *FreecacheStore) Invalidate(ctx context.Context, options ...lib_store.InvalidateOption) error + func (f *FreecacheStore) Set(ctx context.Context, key any, value any, options ...lib_store.Option) error + type MockFreecacheClientInterface struct + func NewMockFreecacheClientInterface(ctrl *gomock.Controller) *MockFreecacheClientInterface + func (m *MockFreecacheClientInterface) Clear() + func (m *MockFreecacheClientInterface) Del(key []byte) bool + func (m *MockFreecacheClientInterface) DelInt(key int64) bool + func (m *MockFreecacheClientInterface) EXPECT() *MockFreecacheClientInterfaceMockRecorder + func (m *MockFreecacheClientInterface) Get(key []byte) ([]byte, error) + func (m *MockFreecacheClientInterface) GetInt(key int64) ([]byte, error) + func (m *MockFreecacheClientInterface) Set(key, value []byte, expireSeconds int) error + func (m *MockFreecacheClientInterface) SetInt(key int64, value []byte, expireSeconds int) error + func (m *MockFreecacheClientInterface) TTL(key []byte) (uint32, error) + type MockFreecacheClientInterfaceMockRecorder struct + func (mr *MockFreecacheClientInterfaceMockRecorder) Clear() *gomock.Call + func (mr *MockFreecacheClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call + func (mr *MockFreecacheClientInterfaceMockRecorder) DelInt(key interface{}) *gomock.Call + func (mr *MockFreecacheClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call + func (mr *MockFreecacheClientInterfaceMockRecorder) GetInt(key interface{}) *gomock.Call + func (mr *MockFreecacheClientInterfaceMockRecorder) Set(key, value, expireSeconds interface{}) *gomock.Call + func (mr *MockFreecacheClientInterfaceMockRecorder) SetInt(key, value, expireSeconds interface{}) *gomock.Call + func (mr *MockFreecacheClientInterfaceMockRecorder) TTL(key interface{}) *gomock.Call