Versions in this module Expand all Collapse all v4 v4.2.4 Oct 4, 2024 Changes in this version + const RistrettoTagPattern + const RistrettoType + type MockRistrettoClientInterface struct + func NewMockRistrettoClientInterface(ctrl *gomock.Controller) *MockRistrettoClientInterface + func (m *MockRistrettoClientInterface) Clear() + func (m *MockRistrettoClientInterface) Del(key any) + func (m *MockRistrettoClientInterface) EXPECT() *MockRistrettoClientInterfaceMockRecorder + func (m *MockRistrettoClientInterface) Get(key any) (any, bool) + func (m *MockRistrettoClientInterface) SetWithTTL(key, value any, cost int64, ttl time.Duration) bool + func (m *MockRistrettoClientInterface) Wait() + type MockRistrettoClientInterfaceMockRecorder struct + func (mr *MockRistrettoClientInterfaceMockRecorder) Clear() *gomock.Call + func (mr *MockRistrettoClientInterfaceMockRecorder) Del(key interface{}) *gomock.Call + func (mr *MockRistrettoClientInterfaceMockRecorder) Get(key interface{}) *gomock.Call + func (mr *MockRistrettoClientInterfaceMockRecorder) SetWithTTL(key, value, cost, ttl interface{}) *gomock.Call + func (mr *MockRistrettoClientInterfaceMockRecorder) Wait() *gomock.Call + type RistrettoClientInterface interface + Clear func() + Del func(key any) + Get func(key any) (any, bool) + SetWithTTL func(key, value any, cost int64, ttl time.Duration) bool + Wait func() + type RistrettoStore struct + func NewRistretto(client RistrettoClientInterface, options ...lib_store.Option) *RistrettoStore + func (s *RistrettoStore) Clear(_ context.Context) error + func (s *RistrettoStore) Delete(_ context.Context, key any) error + func (s *RistrettoStore) Get(_ context.Context, key any) (any, error) + func (s *RistrettoStore) GetType() string + func (s *RistrettoStore) GetWithTTL(ctx context.Context, key any) (any, time.Duration, error) + func (s *RistrettoStore) Invalidate(ctx context.Context, options ...lib_store.InvalidateOption) error + func (s *RistrettoStore) Set(ctx context.Context, key any, value any, options ...lib_store.Option) error