Documentation ¶
Index ¶
- Variables
- func AddSortedString(insertFunc func(string, time.Duration), iterationCount int) []string
- func DebugInsert(cache cache.Cache) func(string, time.Duration)
- func DebugInsertTTL(cache cache.Cache) func(string, time.Duration)
- func InsertAndRetrieve(cacheTester CacheTester)
- func InsertTTLAndExpiry(cacheTester CacheTester)
- func InsertTTLAndFlush(cacheTester CacheTester)
- func InsertTTLAndRemove(cacheTester CacheTester)
- func InsertTTLAndRetrieve(cacheTester CacheTester)
- func InsertTTLAndTTLCheck(cacheTester CacheTester)
- func LRUInsertTTLAndRetrieve(cacheTester CacheTester) []string
- func TimeUTC() time.Time
- type CacheTester
- type MockClock
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Min = store_test_helpers.Min RandString = store_test_helpers.RandString )
Functions ¶
func AddSortedString ¶
func DebugInsert ¶
Using the cache.Cache Insert function, create a dynamic []byte value for the AddSortedString
func DebugInsertTTL ¶
Using the cache.Cache InsertTTL function, create a dynamic []byte value for the AddSortedString
func InsertAndRetrieve ¶
func InsertAndRetrieve(cacheTester CacheTester)
func InsertTTLAndExpiry ¶
func InsertTTLAndExpiry(cacheTester CacheTester)
func InsertTTLAndFlush ¶
func InsertTTLAndFlush(cacheTester CacheTester)
func InsertTTLAndRemove ¶
func InsertTTLAndRemove(cacheTester CacheTester)
func InsertTTLAndRetrieve ¶
func InsertTTLAndRetrieve(cacheTester CacheTester)
func InsertTTLAndTTLCheck ¶
func InsertTTLAndTTLCheck(cacheTester CacheTester)
func LRUInsertTTLAndRetrieve ¶
func LRUInsertTTLAndRetrieve(cacheTester CacheTester) []string
LRU size should be same as Iterations
Types ¶
type CacheTester ¶
type CacheTester struct { Tester *testing.T Cache cache.Cache RemoveExpired func() Clock *MockClock Iterations int }
func (*CacheTester) RetrieveDeletedKey ¶
func (ct *CacheTester) RetrieveDeletedKey(i int, key string)
func (*CacheTester) RetrieveKey ¶
func (ct *CacheTester) RetrieveKey(i int, key string)
Click to show internal directories.
Click to hide internal directories.