SYMBOL INDEX (286 symbols across 30 files) FILE: assert_test.go function assertEqual (line 12) | func assertEqual(t *testing.T, expected, actual interface{}, msgAndArgs ... function noError (line 23) | func noError(t *testing.T, e error) { function objectsAreEqual (line 32) | func objectsAreEqual(expected, actual interface{}) bool { FILE: bigcache.go constant minimumEntriesInShard (line 10) | minimumEntriesInShard = 10 type BigCache (line 16) | type BigCache struct method Close (line 130) | func (c *BigCache) Close() error { method Get (line 138) | func (c *BigCache) Get(key string) ([]byte, error) { method GetWithInfo (line 147) | func (c *BigCache) GetWithInfo(key string) ([]byte, Response, error) { method Set (line 154) | func (c *BigCache) Set(key string, entry []byte) error { method Append (line 163) | func (c *BigCache) Append(key string, entry []byte) error { method Delete (line 170) | func (c *BigCache) Delete(key string) error { method Reset (line 177) | func (c *BigCache) Reset() error { method ResetStats (line 185) | func (c *BigCache) ResetStats() error { method Len (line 193) | func (c *BigCache) Len() int { method Capacity (line 202) | func (c *BigCache) Capacity() int { method Stats (line 211) | func (c *BigCache) Stats() Stats { method KeyMetadata (line 225) | func (c *BigCache) KeyMetadata(key string) Metadata { method Iterator (line 232) | func (c *BigCache) Iterator() *EntryInfoIterator { method onEvict (line 236) | func (c *BigCache) onEvict(oldestEntry []byte, currentTimestamp uint64... method cleanUp (line 248) | func (c *BigCache) cleanUp(currentTimestamp uint64) { method getShard (line 254) | func (c *BigCache) getShard(hashedKey uint64) (shard *cacheShard) { method providedOnRemove (line 258) | func (c *BigCache) providedOnRemove(wrappedEntry []byte, reason Remove... method providedOnRemoveWithReason (line 262) | func (c *BigCache) providedOnRemoveWithReason(wrappedEntry []byte, rea... method notProvidedOnRemove (line 268) | func (c *BigCache) notProvidedOnRemove(wrappedEntry []byte, reason Rem... method providedOnRemoveWithMetadata (line 271) | func (c *BigCache) providedOnRemoveWithMetadata(wrappedEntry []byte, r... type Response (line 27) | type Response struct type RemoveReason (line 32) | type RemoveReason constant _ (line 35) | _ RemoveReason = iota constant Expired (line 37) | Expired constant NoSpace (line 40) | NoSpace constant Deleted (line 42) | Deleted function New (line 46) | func New(ctx context.Context, config Config) (*BigCache, error) { function NewBigCache (line 55) | func NewBigCache(config Config) (*BigCache, error) { function newBigCache (line 59) | func newBigCache(ctx context.Context, config Config, clock clock) (*BigC... FILE: bigcache_bench_test.go function BenchmarkWriteToCacheWith1Shard (line 14) | func BenchmarkWriteToCacheWith1Shard(b *testing.B) { function BenchmarkWriteToLimitedCacheWithSmallInitSizeAnd1Shard (line 18) | func BenchmarkWriteToLimitedCacheWithSmallInitSizeAnd1Shard(b *testing.B) { function BenchmarkWriteToUnlimitedCacheWithSmallInitSizeAnd1Shard (line 34) | func BenchmarkWriteToUnlimitedCacheWithSmallInitSizeAnd1Shard(b *testing... function BenchmarkWriteToCache (line 49) | func BenchmarkWriteToCache(b *testing.B) { function BenchmarkAppendToCache (line 56) | func BenchmarkAppendToCache(b *testing.B) { function BenchmarkReadFromCache (line 64) | func BenchmarkReadFromCache(b *testing.B) { function BenchmarkReadFromCacheWithInfo (line 72) | func BenchmarkReadFromCacheWithInfo(b *testing.B) { function BenchmarkIterateOverCache (line 79) | func BenchmarkIterateOverCache(b *testing.B) { function BenchmarkWriteToCacheWith1024ShardsAndSmallShardInitSize (line 112) | func BenchmarkWriteToCacheWith1024ShardsAndSmallShardInitSize(b *testing... function BenchmarkReadFromCacheNonExistentKeys (line 116) | func BenchmarkReadFromCacheNonExistentKeys(b *testing.B) { function writeToCache (line 124) | func writeToCache(b *testing.B, shards int, lifeWindow time.Duration, re... function appendToCache (line 145) | func appendToCache(b *testing.B, shards int, lifeWindow time.Duration, r... function readFromCache (line 169) | func readFromCache(b *testing.B, shards int, info bool) { function readFromCacheNonExistentKeys (line 194) | func readFromCacheNonExistentKeys(b *testing.B, shards int) { FILE: bigcache_test.go function TestWriteAndGetOnCache (line 16) | func TestWriteAndGetOnCache(t *testing.T) { function TestAppendAndGetOnCache (line 32) | func TestAppendAndGetOnCache(t *testing.T) { function TestAppendRandomly (line 82) | func TestAppendRandomly(t *testing.T) { function TestAppendCollision (line 145) | func TestAppendCollision(t *testing.T) { function TestConstructCacheWithDefaultHasher (line 178) | func TestConstructCacheWithDefaultHasher(t *testing.T) { function TestNewBigcacheValidation (line 193) | func TestNewBigcacheValidation(t *testing.T) { function TestEntryNotFound (line 226) | func TestEntryNotFound(t *testing.T) { function TestTimingEviction (line 244) | func TestTimingEviction(t *testing.T) { function TestTimingEvictionShouldEvictOnlyFromUpdatedShard (line 274) | func TestTimingEvictionShouldEvictOnlyFromUpdatedShard(t *testing.T) { function TestCleanShouldEvictAll (line 297) | func TestCleanShouldEvictAll(t *testing.T) { function TestOnRemoveCallback (line 319) | func TestOnRemoveCallback(t *testing.T) { function TestOnRemoveWithReasonCallback (line 353) | func TestOnRemoveWithReasonCallback(t *testing.T) { function TestOnRemoveFilter (line 382) | func TestOnRemoveFilter(t *testing.T) { function TestOnRemoveFilterExpired (line 416) | func TestOnRemoveFilterExpired(t *testing.T) { function TestOnRemoveGetEntryStats (line 477) | func TestOnRemoveGetEntryStats(t *testing.T) { function TestCacheLen (line 510) | func TestCacheLen(t *testing.T) { function TestCacheCapacity (line 531) | func TestCacheCapacity(t *testing.T) { function TestCacheInitialCapacity (line 553) | func TestCacheInitialCapacity(t *testing.T) { function TestRemoveEntriesWhenShardIsFull (line 580) | func TestRemoveEntriesWhenShardIsFull(t *testing.T) { function TestCacheStats (line 607) | func TestCacheStats(t *testing.T) { function TestCacheEntryStats (line 648) | func TestCacheEntryStats(t *testing.T) { function TestCacheRestStats (line 672) | func TestCacheRestStats(t *testing.T) { function TestCacheDel (line 721) | func TestCacheDel(t *testing.T) { function TestCacheDelRandomly (line 744) | func TestCacheDelRandomly(t *testing.T) { function TestWriteAndReadParallelSameKeyWithStats (line 805) | func TestWriteAndReadParallelSameKeyWithStats(t *testing.T) { function TestCacheReset (line 838) | func TestCacheReset(t *testing.T) { function TestIterateOnResetCache (line 873) | func TestIterateOnResetCache(t *testing.T) { function TestGetOnResetCache (line 897) | func TestGetOnResetCache(t *testing.T) { function TestEntryUpdate (line 923) | func TestEntryUpdate(t *testing.T) { function TestOldestEntryDeletionWhenMaxCacheSizeIsReached (line 947) | func TestOldestEntryDeletionWhenMaxCacheSizeIsReached(t *testing.T) { function TestRetrievingEntryShouldCopy (line 974) | func TestRetrievingEntryShouldCopy(t *testing.T) { function TestEntryBiggerThanMaxShardSizeError (line 1000) | func TestEntryBiggerThanMaxShardSizeError(t *testing.T) { function TestHashCollision (line 1019) | func TestHashCollision(t *testing.T) { function TestNilValueCaching (line 1061) | func TestNilValueCaching(t *testing.T) { function TestClosing (line 1098) | func TestClosing(t *testing.T) { function TestEntryNotPresent (line 1122) | func TestEntryNotPresent(t *testing.T) { function TestBigCache_GetWithInfo (line 1143) | func TestBigCache_GetWithInfo(t *testing.T) { function TestBigCache_GetWithInfoCollision (line 1203) | func TestBigCache_GetWithInfoCollision(t *testing.T) { type mockedLogger (line 1236) | type mockedLogger struct method Printf (line 1241) | func (ml *mockedLogger) Printf(format string, v ...interface{}) { type mockedClock (line 1246) | type mockedClock struct method Epoch (line 1250) | func (mc *mockedClock) Epoch() int64 { method set (line 1254) | func (mc *mockedClock) set(value int64) { function blob (line 1258) | func blob(char byte, len int) []byte { function TestCache_SetWithoutCleanWindow (line 1262) | func TestCache_SetWithoutCleanWindow(t *testing.T) { function TestCache_RepeatedSetWithBiggerEntry (line 1276) | func TestCache_RepeatedSetWithBiggerEntry(t *testing.T) { function TestBigCache_allocateAdditionalMemoryLeadPanic (line 1318) | func TestBigCache_allocateAdditionalMemoryLeadPanic(t *testing.T) { function TestRemoveNonExpiredData (line 1353) | func TestRemoveNonExpiredData(t *testing.T) { FILE: bytes.go function bytesToString (line 10) | func bytesToString(b []byte) string { FILE: bytes_appengine.go function bytesToString (line 5) | func bytesToString(b []byte) string { FILE: clock.go type clock (line 5) | type clock interface type systemClock (line 9) | type systemClock struct method Epoch (line 12) | func (c systemClock) Epoch() int64 { FILE: config.go type Config (line 6) | type Config struct method initialShardSize (line 73) | func (c Config) initialShardSize() int { method maximumShardSizeInBytes (line 78) | func (c Config) maximumShardSizeInBytes() int { method OnRemoveFilterSet (line 90) | func (c Config) OnRemoveFilterSet(reasons ...RemoveReason) Config { function DefaultConfig (line 57) | func DefaultConfig(eviction time.Duration) Config { FILE: encoding.go constant timestampSizeInBytes (line 8) | timestampSizeInBytes = 8 constant hashSizeInBytes (line 9) | hashSizeInBytes = 8 constant keySizeInBytes (line 10) | keySizeInBytes = 2 constant headersSizeInBytes (line 11) | headersSizeInBytes = timestampSizeInBytes + hashSizeInBytes + keySizeI... function wrapEntry (line 14) | func wrapEntry(timestamp uint64, hash uint64, key string, entry []byte, ... function appendToWrappedEntry (line 32) | func appendToWrappedEntry(timestamp uint64, wrappedEntry []byte, entry [... function readEntry (line 47) | func readEntry(data []byte) []byte { function readTimestampFromEntry (line 57) | func readTimestampFromEntry(data []byte) uint64 { function readKeyFromEntry (line 61) | func readKeyFromEntry(data []byte) string { function compareKeyFromEntry (line 71) | func compareKeyFromEntry(data []byte, key string) bool { function readHashFromEntry (line 77) | func readHashFromEntry(data []byte) uint64 { function resetHashFromEntry (line 81) | func resetHashFromEntry(data []byte) { FILE: encoding_test.go function TestEncodeDecode (line 8) | func TestEncodeDecode(t *testing.T) { function TestAllocateBiggerBuffer (line 27) | func TestAllocateBiggerBuffer(t *testing.T) { FILE: examples_test.go function Example (line 12) | func Example() { function Example_custom (line 22) | func Example_custom() { FILE: fnv.go function newDefaultHasher (line 6) | func newDefaultHasher() Hasher { type fnv64a (line 10) | type fnv64a struct method Sum64 (line 20) | func (f fnv64a) Sum64(key string) uint64 { constant offset64 (line 14) | offset64 = 14695981039346656037 constant prime64 (line 16) | prime64 = 1099511628211 FILE: fnv_bench_test.go function BenchmarkFnvHashSum64 (line 7) | func BenchmarkFnvHashSum64(b *testing.B) { function BenchmarkFnvHashStdLibSum64 (line 14) | func BenchmarkFnvHashStdLibSum64(b *testing.B) { FILE: fnv_test.go type testCase (line 8) | type testCase struct function TestFnvHashSum64 (line 21) | func TestFnvHashSum64(t *testing.T) { function stdLibFnvSum64 (line 31) | func stdLibFnvSum64(key string) uint64 { FILE: hash.go type Hasher (line 6) | type Hasher interface FILE: hash_test.go type hashStub (line 3) | type hashStub method Sum64 (line 5) | func (stub hashStub) Sum64(_ string) uint64 { FILE: iterator.go type iteratorError (line 7) | type iteratorError method Error (line 9) | func (e iteratorError) Error() string { constant ErrInvalidIteratorState (line 14) | ErrInvalidIteratorState = iteratorError("Iterator is in invalid state. U... constant ErrCannotRetrieveEntry (line 17) | ErrCannotRetrieveEntry = iteratorError("Could not retrieve entry from ca... type EntryInfo (line 22) | type EntryInfo struct method Key (line 31) | func (e EntryInfo) Key() string { method Hash (line 36) | func (e EntryInfo) Hash() uint64 { method Timestamp (line 41) | func (e EntryInfo) Timestamp() uint64 { method Value (line 46) | func (e EntryInfo) Value() []byte { type EntryInfoIterator (line 51) | type EntryInfoIterator struct method SetNext (line 63) | func (it *EntryInfoIterator) SetNext() bool { method setCurrentEntry (line 103) | func (it *EntryInfoIterator) setCurrentEntry() bool { method Value (line 140) | func (it *EntryInfoIterator) Value() (EntryInfo, error) { function newIterator (line 127) | func newIterator(cache *BigCache) *EntryInfoIterator { FILE: iterator_test.go function TestEntriesIterator (line 14) | func TestEntriesIterator(t *testing.T) { function TestEntriesIteratorWithMostShardsEmpty (line 47) | func TestEntriesIteratorWithMostShardsEmpty(t *testing.T) { function TestEntriesIteratorWithConcurrentUpdate (line 79) | func TestEntriesIteratorWithConcurrentUpdate(t *testing.T) { function TestEntriesIteratorWithAllShardsEmpty (line 121) | func TestEntriesIteratorWithAllShardsEmpty(t *testing.T) { function TestEntriesIteratorInInvalidState (line 141) | func TestEntriesIteratorInInvalidState(t *testing.T) { function TestEntriesIteratorParallelAdd (line 161) | func TestEntriesIteratorParallelAdd(t *testing.T) { function TestParallelSetAndIteration (line 190) | func TestParallelSetAndIteration(t *testing.T) { FILE: logger.go type Logger (line 9) | type Logger interface function DefaultLogger (line 20) | func DefaultLogger() *log.Logger { function newLogger (line 24) | func newLogger(custom Logger) Logger { FILE: queue/bytes_queue.go constant minimumHeaderSize (line 11) | minimumHeaderSize = 17 constant leftMarginIndex (line 13) | leftMarginIndex = 1 type BytesQueue (line 25) | type BytesQueue struct method Reset (line 78) | func (q *BytesQueue) Reset() { method Push (line 89) | func (q *BytesQueue) Push(data []byte) (int, error) { method allocateAdditionalMemory (line 109) | func (q *BytesQueue) allocateAdditionalMemory(minimum int) { method push (line 143) | func (q *BytesQueue) push(data []byte, len int) { method copy (line 159) | func (q *BytesQueue) copy(data []byte, len int) { method Pop (line 164) | func (q *BytesQueue) Pop() ([]byte, error) { method Peek (line 187) | func (q *BytesQueue) Peek() ([]byte, error) { method Get (line 193) | func (q *BytesQueue) Get(index int) ([]byte, error) { method CheckGet (line 199) | func (q *BytesQueue) CheckGet(index int) error { method Capacity (line 204) | func (q *BytesQueue) Capacity() int { method Len (line 209) | func (q *BytesQueue) Len() int { method peekCheckErr (line 219) | func (q *BytesQueue) peekCheckErr(index int) error { method peek (line 236) | func (q *BytesQueue) peek(index int) ([]byte, int, error) { method canInsertAfterTail (line 247) | func (q *BytesQueue) canInsertAfterTail(need int) bool { method canInsertBeforeHead (line 262) | func (q *BytesQueue) canInsertBeforeHead(need int) bool { type queueError (line 38) | type queueError struct method Error (line 214) | func (e *queueError) Error() string { function getNeededSize (line 43) | func getNeededSize(length int) int { function NewBytesQueue (line 64) | func NewBytesQueue(capacity int, maxCapacity int, verbose bool) *BytesQu... FILE: queue/bytes_queue_test.go function TestPushAndPop (line 12) | func TestPushAndPop(t *testing.T) { function TestLen (line 32) | func TestLen(t *testing.T) { function TestPeek (line 47) | func TestPeek(t *testing.T) { function TestResetFullQueue (line 74) | func TestResetFullQueue(t *testing.T) { function TestReset (line 100) | func TestReset(t *testing.T) { function TestReuseAvailableSpace (line 136) | func TestReuseAvailableSpace(t *testing.T) { function TestAllocateAdditionalSpace (line 153) | func TestAllocateAdditionalSpace(t *testing.T) { function TestAllocateAdditionalSpaceForInsufficientFreeFragmentedSpaceWhereHeadIsBeforeTail (line 167) | func TestAllocateAdditionalSpaceForInsufficientFreeFragmentedSpaceWhereH... function TestUnchangedEntriesIndexesAfterAdditionalMemoryAllocationWhereHeadIsBeforeTail (line 185) | func TestUnchangedEntriesIndexesAfterAdditionalMemoryAllocationWhereHead... function TestAllocateAdditionalSpaceForInsufficientFreeFragmentedSpaceWhereTailIsBeforeHead (line 203) | func TestAllocateAdditionalSpaceForInsufficientFreeFragmentedSpaceWhereT... function TestAllocateAdditionalSpaceForInsufficientFreeFragmentedSpaceWhereTailIsBeforeHead128 (line 227) | func TestAllocateAdditionalSpaceForInsufficientFreeFragmentedSpaceWhereT... function TestUnchangedEntriesIndexesAfterAdditionalMemoryAllocationWhereTailIsBeforeHead (line 252) | func TestUnchangedEntriesIndexesAfterAdditionalMemoryAllocationWhereTail... function TestAllocateAdditionalSpaceForValueBiggerThanInitQueue (line 271) | func TestAllocateAdditionalSpaceForValueBiggerThanInitQueue(t *testing.T) { function TestAllocateAdditionalSpaceForValueBiggerThanQueue (line 285) | func TestAllocateAdditionalSpaceForValueBiggerThanQueue(t *testing.T) { function TestPopWholeQueue (line 304) | func TestPopWholeQueue(t *testing.T) { function TestGetEntryFromIndex (line 322) | func TestGetEntryFromIndex(t *testing.T) { function TestGetEntryFromInvalidIndex (line 338) | func TestGetEntryFromInvalidIndex(t *testing.T) { function TestGetEntryFromIndexOutOfRange (line 355) | func TestGetEntryFromIndexOutOfRange(t *testing.T) { function TestGetEntryFromEmptyQueue (line 372) | func TestGetEntryFromEmptyQueue(t *testing.T) { function TestMaxSizeLimit (line 388) | func TestMaxSizeLimit(t *testing.T) { function TestPushEntryAfterAllocateAdditionMemory (line 407) | func TestPushEntryAfterAllocateAdditionMemory(t *testing.T) { function TestPushEntryAfterAllocateAdditionMemoryInFull (line 428) | func TestPushEntryAfterAllocateAdditionMemoryInFull(t *testing.T) { function pop (line 452) | func pop(queue *BytesQueue) []byte { function get (line 460) | func get(queue *BytesQueue, index int) []byte { function blob (line 468) | func blob(char byte, len int) []byte { function assertEqual (line 472) | func assertEqual(t *testing.T, expected, actual interface{}, msgAndArgs ... function noError (line 483) | func noError(t *testing.T, e error) { function objectsAreEqual (line 492) | func objectsAreEqual(expected, actual interface{}) bool { FILE: server/cache_handlers.go function cacheIndexHandler (line 10) | func cacheIndexHandler() http.Handler { function cacheClearHandler (line 23) | func cacheClearHandler() http.Handler { function clearCache (line 29) | func clearCache(w http.ResponseWriter, r *http.Request) { function getCacheHandler (line 39) | func getCacheHandler(w http.ResponseWriter, r *http.Request) { function putCacheHandler (line 62) | func putCacheHandler(w http.ResponseWriter, r *http.Request) { function deleteCacheHandler (line 88) | func deleteCacheHandler(w http.ResponseWriter, r *http.Request) { FILE: server/middleware.go type service (line 10) | type service function serviceLoader (line 13) | func serviceLoader(h http.Handler, svcs ...service) http.Handler { function requestMetrics (line 21) | func requestMetrics(l *log.Logger) service { FILE: server/middleware_test.go function emptyTestHandler (line 11) | func emptyTestHandler() service { function TestServiceLoader (line 19) | func TestServiceLoader(t *testing.T) { function TestRequestMetrics (line 32) | func TestRequestMetrics(t *testing.T) { FILE: server/server.go constant apiVersion (line 17) | apiVersion = "v1" constant apiBasePath (line 18) | apiBasePath = "/api/" + apiVersion + "/" constant cachePath (line 21) | cachePath = apiBasePath + "cache/" constant statsPath (line 22) | statsPath = apiBasePath + "stats" constant cacheClearPath (line 23) | cacheClearPath = apiBasePath + "cache/clear" constant version (line 25) | version = "1.0.0" function init (line 38) | func init() { function main (line 50) | func main() { FILE: server/server_test.go constant testBaseString (line 17) | testBaseString = "http://bigcache.org" function testCacheSetup (line 20) | func testCacheSetup() { function TestMain (line 32) | func TestMain(m *testing.M) { function TestGetWithNoKey (line 37) | func TestGetWithNoKey(t *testing.T) { function TestGetWithMissingKey (line 50) | func TestGetWithMissingKey(t *testing.T) { function TestGetKey (line 63) | func TestGetKey(t *testing.T) { function TestPutKey (line 84) | func TestPutKey(t *testing.T) { function TestPutEmptyKey (line 101) | func TestPutEmptyKey(t *testing.T) { function TestDeleteEmptyKey (line 115) | func TestDeleteEmptyKey(t *testing.T) { function TestDeleteInvalidKey (line 129) | func TestDeleteInvalidKey(t *testing.T) { function TestDeleteKey (line 143) | func TestDeleteKey(t *testing.T) { function TestClearCache (line 161) | func TestClearCache(t *testing.T) { function TestGetStats (line 183) | func TestGetStats(t *testing.T) { function TestGetStatsIndex (line 211) | func TestGetStatsIndex(t *testing.T) { function TestCacheIndexHandler (line 249) | func TestCacheIndexHandler(t *testing.T) { function TestInvalidPutWhenExceedShardCap (line 276) | func TestInvalidPutWhenExceedShardCap(t *testing.T) { function TestInvalidPutWhenReading (line 289) | func TestInvalidPutWhenReading(t *testing.T) { type errReader (line 302) | type errReader method Read (line 304) | func (errReader) Read([]byte) (int, error) { FILE: server/stats_handler.go function statsIndexHandler (line 10) | func statsIndexHandler() http.Handler { function getCacheStatsHandler (line 22) | func getCacheStatsHandler(w http.ResponseWriter, r *http.Request) { FILE: shard.go type onRemoveCallback (line 11) | type onRemoveCallback type Metadata (line 14) | type Metadata struct type cacheShard (line 18) | type cacheShard struct method getWithInfo (line 36) | func (s *cacheShard) getWithInfo(key string, hashedKey uint64) (entry ... method get (line 62) | func (s *cacheShard) get(key string, hashedKey uint64) ([]byte, error) { method getWrappedEntry (line 84) | func (s *cacheShard) getWrappedEntry(hashedKey uint64) ([]byte, error) { method getValidWrapEntry (line 101) | func (s *cacheShard) getValidWrapEntry(key string, hashedKey uint64) (... method set (line 120) | func (s *cacheShard) set(key string, hashedKey uint64, entry []byte) e... method addNewWithoutLock (line 154) | func (s *cacheShard) addNewWithoutLock(key string, hashedKey uint64, e... method setWrappedEntryWithoutLock (line 176) | func (s *cacheShard) setWrappedEntryWithoutLock(currentTimestamp uint6... method append (line 200) | func (s *cacheShard) append(key string, hashedKey uint64, entry []byte... method del (line 224) | func (s *cacheShard) del(hashedKey uint64) error { method onEvict (line 276) | func (s *cacheShard) onEvict(oldestEntry []byte, currentTimestamp uint... method isExpired (line 284) | func (s *cacheShard) isExpired(oldestEntry []byte, currentTimestamp ui... method cleanUp (line 292) | func (s *cacheShard) cleanUp(currentTimestamp uint64) { method getEntry (line 304) | func (s *cacheShard) getEntry(hashedKey uint64) ([]byte, error) { method copyHashedKeys (line 317) | func (s *cacheShard) copyHashedKeys() (keys []uint64, next int) { method removeOldestEntry (line 330) | func (s *cacheShard) removeOldestEntry(reason RemoveReason) error { method reset (line 348) | func (s *cacheShard) reset(config Config) { method resetStats (line 356) | func (s *cacheShard) resetStats() { method len (line 362) | func (s *cacheShard) len() int { method capacity (line 369) | func (s *cacheShard) capacity() int { method getStats (line 376) | func (s *cacheShard) getStats() Stats { method getKeyMetadataWithLock (line 387) | func (s *cacheShard) getKeyMetadataWithLock(key uint64) Metadata { method getKeyMetadata (line 396) | func (s *cacheShard) getKeyMetadata(key uint64) Metadata { method hit (line 402) | func (s *cacheShard) hit(key uint64) { method hitWithoutLock (line 411) | func (s *cacheShard) hitWithoutLock(key uint64) { method miss (line 418) | func (s *cacheShard) miss() { method delhit (line 422) | func (s *cacheShard) delhit() { method delmiss (line 426) | func (s *cacheShard) delmiss() { method collision (line 430) | func (s *cacheShard) collision() { function initNewShard (line 434) | func initNewShard(config Config, callback onRemoveCallback, clock clock)... FILE: stats.go type Stats (line 4) | type Stats struct FILE: utils.go function max (line 3) | func max(a, b int) int { function convertMBToBytes (line 10) | func convertMBToBytes(value int) int { function isPowerOfTwo (line 14) | func isPowerOfTwo(number int) bool {