Versions in this module Expand all Collapse all v0 v0.0.1 Aug 24, 2023 Changes in this version + type AdaptedSizedLruCacheStub struct + AddSizedAndReturnEvictedCalled func(key, value interface{}, sizeInBytes int64) map[interface{}]interface{} + AddSizedCalled func(key, value interface{}, sizeInBytes int64) bool + AddSizedIfMissingCalled func(key, value interface{}, sizeInBytes int64) (ok, evicted bool) + ContainsCalled func(key interface{}) (ok bool) + GetCalled func(key interface{}) (value interface{}, ok bool) + KeysCalled func() []interface{} + LenCalled func() int + PeekCalled func(key interface{}) (value interface{}, ok bool) + PurgeCalled func() + RemoveCalled func(key interface{}) bool + SizeInBytesContainedCalled func() uint64 + func (a *AdaptedSizedLruCacheStub) AddSized(key, value interface{}, sizeInBytes int64) bool + func (a *AdaptedSizedLruCacheStub) AddSizedAndReturnEvicted(key, value interface{}, sizeInBytes int64) map[interface{}]interface{} + func (a *AdaptedSizedLruCacheStub) AddSizedIfMissing(key, value interface{}, sizeInBytes int64) (ok, evicted bool) + func (a *AdaptedSizedLruCacheStub) Contains(key interface{}) (ok bool) + func (a *AdaptedSizedLruCacheStub) Get(key interface{}) (value interface{}, ok bool) + func (a *AdaptedSizedLruCacheStub) IsInterfaceNil() bool + func (a *AdaptedSizedLruCacheStub) Keys() []interface{} + func (a *AdaptedSizedLruCacheStub) Len() int + func (a *AdaptedSizedLruCacheStub) Peek(key interface{}) (value interface{}, ok bool) + func (a *AdaptedSizedLruCacheStub) Purge() + func (a *AdaptedSizedLruCacheStub) Remove(key interface{}) bool + func (a *AdaptedSizedLruCacheStub) SizeInBytesContained() uint64 + type EvictionHandlerStub struct + EvictedCalled func(key []byte) + func (sh *EvictionHandlerStub) Evicted(key []byte) + type MarshalizerMock struct + Fail bool + func (mm *MarshalizerMock) IsInterfaceNil() bool + func (mm *MarshalizerMock) Marshal(obj interface{}) ([]byte, error) + func (mm *MarshalizerMock) Unmarshal(obj interface{}, buff []byte) error + type MemDbMock struct + PutCalled func(key, val []byte) error + func NewMemDbMock() *MemDbMock + func (s *MemDbMock) Close() error + func (s *MemDbMock) Destroy() error + func (s *MemDbMock) DestroyClosed() error + func (s *MemDbMock) Get(key []byte) ([]byte, error) + func (s *MemDbMock) Has(key []byte) error + func (s *MemDbMock) IsInterfaceNil() bool + func (s *MemDbMock) Put(key, val []byte) error + func (s *MemDbMock) RangeKeys(handler func(key []byte, value []byte) bool) + func (s *MemDbMock) Remove(key []byte) error + type PersisterStub struct + CloseCalled func() error + DestroyCalled func() error + DestroyClosedCalled func() error + GetCalled func(key []byte) ([]byte, error) + HasCalled func(key []byte) error + PutCalled func(key, val []byte) error + RangeKeysCalled func(handler func(key []byte, val []byte) bool) + RemoveCalled func(key []byte) error + func (p *PersisterStub) Close() error + func (p *PersisterStub) Destroy() error + func (p *PersisterStub) DestroyClosed() error + func (p *PersisterStub) Get(key []byte) ([]byte, error) + func (p *PersisterStub) Has(key []byte) error + func (p *PersisterStub) IsInterfaceNil() bool + func (p *PersisterStub) Put(key, val []byte) error + func (p *PersisterStub) RangeKeys(handler func(key []byte, val []byte) bool) + func (p *PersisterStub) Remove(key []byte) error + type TimeCacheStub struct + AddCalled func(key string) error + HasCalled func(key string) bool + SweepCalled func() + UpsertCalled func(key string, span time.Duration) error + func (tcs *TimeCacheStub) Add(key string) error + func (tcs *TimeCacheStub) Has(key string) bool + func (tcs *TimeCacheStub) IsInterfaceNil() bool + func (tcs *TimeCacheStub) Sweep() + func (tcs *TimeCacheStub) Upsert(key string, span time.Duration) error