SYMBOL INDEX (189 symbols across 4 files) FILE: cache.go type Item (line 13) | type Item struct method Expired (line 19) | func (item Item) Expired() bool { constant NoExpiration (line 28) | NoExpiration time.Duration = -1 constant DefaultExpiration (line 32) | DefaultExpiration time.Duration = 0 type Cache (line 35) | type Cache struct type cache (line 40) | type cache struct method Set (line 51) | func (c *cache) Set(k string, x interface{}, d time.Duration) { method set (line 70) | func (c *cache) set(k string, x interface{}, d time.Duration) { method SetDefault (line 86) | func (c *cache) SetDefault(k string, x interface{}) { method Add (line 92) | func (c *cache) Add(k string, x interface{}, d time.Duration) error { method Replace (line 106) | func (c *cache) Replace(k string, x interface{}, d time.Duration) error { method Get (line 120) | func (c *cache) Get(k string) (interface{}, bool) { method GetWithExpiration (line 142) | func (c *cache) GetWithExpiration(k string) (interface{}, time.Time, b... method get (line 168) | func (c *cache) get(k string) (interface{}, bool) { method Increment (line 187) | func (c *cache) Increment(k string, n int64) error { method IncrementFloat (line 235) | func (c *cache) IncrementFloat(k string, n float64) error { method IncrementInt (line 259) | func (c *cache) IncrementInt(k string, n int) (int, error) { method IncrementInt8 (line 281) | func (c *cache) IncrementInt8(k string, n int8) (int8, error) { method IncrementInt16 (line 303) | func (c *cache) IncrementInt16(k string, n int16) (int16, error) { method IncrementInt32 (line 325) | func (c *cache) IncrementInt32(k string, n int32) (int32, error) { method IncrementInt64 (line 347) | func (c *cache) IncrementInt64(k string, n int64) (int64, error) { method IncrementUint (line 369) | func (c *cache) IncrementUint(k string, n uint) (uint, error) { method IncrementUintptr (line 391) | func (c *cache) IncrementUintptr(k string, n uintptr) (uintptr, error) { method IncrementUint8 (line 413) | func (c *cache) IncrementUint8(k string, n uint8) (uint8, error) { method IncrementUint16 (line 435) | func (c *cache) IncrementUint16(k string, n uint16) (uint16, error) { method IncrementUint32 (line 457) | func (c *cache) IncrementUint32(k string, n uint32) (uint32, error) { method IncrementUint64 (line 479) | func (c *cache) IncrementUint64(k string, n uint64) (uint64, error) { method IncrementFloat32 (line 501) | func (c *cache) IncrementFloat32(k string, n float32) (float32, error) { method IncrementFloat64 (line 523) | func (c *cache) IncrementFloat64(k string, n float64) (float64, error) { method Decrement (line 547) | func (c *cache) Decrement(k string, n int64) error { method DecrementFloat (line 597) | func (c *cache) DecrementFloat(k string, n float64) error { method DecrementInt (line 621) | func (c *cache) DecrementInt(k string, n int) (int, error) { method DecrementInt8 (line 643) | func (c *cache) DecrementInt8(k string, n int8) (int8, error) { method DecrementInt16 (line 665) | func (c *cache) DecrementInt16(k string, n int16) (int16, error) { method DecrementInt32 (line 687) | func (c *cache) DecrementInt32(k string, n int32) (int32, error) { method DecrementInt64 (line 709) | func (c *cache) DecrementInt64(k string, n int64) (int64, error) { method DecrementUint (line 731) | func (c *cache) DecrementUint(k string, n uint) (uint, error) { method DecrementUintptr (line 753) | func (c *cache) DecrementUintptr(k string, n uintptr) (uintptr, error) { method DecrementUint8 (line 775) | func (c *cache) DecrementUint8(k string, n uint8) (uint8, error) { method DecrementUint16 (line 797) | func (c *cache) DecrementUint16(k string, n uint16) (uint16, error) { method DecrementUint32 (line 819) | func (c *cache) DecrementUint32(k string, n uint32) (uint32, error) { method DecrementUint64 (line 841) | func (c *cache) DecrementUint64(k string, n uint64) (uint64, error) { method DecrementFloat32 (line 863) | func (c *cache) DecrementFloat32(k string, n float32) (float32, error) { method DecrementFloat64 (line 885) | func (c *cache) DecrementFloat64(k string, n float64) (float64, error) { method Delete (line 905) | func (c *cache) Delete(k string) { method delete (line 914) | func (c *cache) delete(k string) (interface{}, bool) { method DeleteExpired (line 931) | func (c *cache) DeleteExpired() { method OnEvicted (line 953) | func (c *cache) OnEvicted(f func(string, interface{})) { method Save (line 963) | func (c *cache) Save(w io.Writer) (err error) { method SaveFile (line 984) | func (c *cache) SaveFile(fname string) error { method Load (line 1002) | func (c *cache) Load(r io.Reader) error { method LoadFile (line 1024) | func (c *cache) LoadFile(fname string) error { method Items (line 1038) | func (c *cache) Items() map[string]Item { method ItemCount (line 1057) | func (c *cache) ItemCount() int { method Flush (line 1065) | func (c *cache) Flush() { type keyAndValue (line 925) | type keyAndValue struct type janitor (line 1071) | type janitor struct method Run (line 1076) | func (j *janitor) Run(c *cache) { function stopJanitor (line 1089) | func stopJanitor(c *Cache) { function runJanitor (line 1093) | func runJanitor(c *cache, ci time.Duration) { function newCache (line 1102) | func newCache(de time.Duration, m map[string]Item) *cache { function newCacheWithJanitor (line 1113) | func newCacheWithJanitor(de time.Duration, ci time.Duration, m map[strin... function New (line 1133) | func New(defaultExpiration, cleanupInterval time.Duration) *Cache { function NewFrom (line 1159) | func NewFrom(defaultExpiration, cleanupInterval time.Duration, items map... FILE: cache_test.go type TestStruct (line 13) | type TestStruct struct function TestCache (line 18) | func TestCache(t *testing.T) { function TestCacheTimes (line 71) | func TestCacheTimes(t *testing.T) { function TestNewFrom (line 109) | func TestNewFrom(t *testing.T) { function TestStorePointerToStruct (line 137) | func TestStorePointerToStruct(t *testing.T) { function TestIncrementWithInt (line 157) | func TestIncrementWithInt(t *testing.T) { function TestIncrementWithInt8 (line 173) | func TestIncrementWithInt8(t *testing.T) { function TestIncrementWithInt16 (line 189) | func TestIncrementWithInt16(t *testing.T) { function TestIncrementWithInt32 (line 205) | func TestIncrementWithInt32(t *testing.T) { function TestIncrementWithInt64 (line 221) | func TestIncrementWithInt64(t *testing.T) { function TestIncrementWithUint (line 237) | func TestIncrementWithUint(t *testing.T) { function TestIncrementWithUintptr (line 253) | func TestIncrementWithUintptr(t *testing.T) { function TestIncrementWithUint8 (line 270) | func TestIncrementWithUint8(t *testing.T) { function TestIncrementWithUint16 (line 286) | func TestIncrementWithUint16(t *testing.T) { function TestIncrementWithUint32 (line 303) | func TestIncrementWithUint32(t *testing.T) { function TestIncrementWithUint64 (line 319) | func TestIncrementWithUint64(t *testing.T) { function TestIncrementWithFloat32 (line 336) | func TestIncrementWithFloat32(t *testing.T) { function TestIncrementWithFloat64 (line 352) | func TestIncrementWithFloat64(t *testing.T) { function TestIncrementFloatWithFloat32 (line 368) | func TestIncrementFloatWithFloat32(t *testing.T) { function TestIncrementFloatWithFloat64 (line 384) | func TestIncrementFloatWithFloat64(t *testing.T) { function TestDecrementWithInt (line 400) | func TestDecrementWithInt(t *testing.T) { function TestDecrementWithInt8 (line 416) | func TestDecrementWithInt8(t *testing.T) { function TestDecrementWithInt16 (line 432) | func TestDecrementWithInt16(t *testing.T) { function TestDecrementWithInt32 (line 448) | func TestDecrementWithInt32(t *testing.T) { function TestDecrementWithInt64 (line 464) | func TestDecrementWithInt64(t *testing.T) { function TestDecrementWithUint (line 480) | func TestDecrementWithUint(t *testing.T) { function TestDecrementWithUintptr (line 496) | func TestDecrementWithUintptr(t *testing.T) { function TestDecrementWithUint8 (line 512) | func TestDecrementWithUint8(t *testing.T) { function TestDecrementWithUint16 (line 528) | func TestDecrementWithUint16(t *testing.T) { function TestDecrementWithUint32 (line 544) | func TestDecrementWithUint32(t *testing.T) { function TestDecrementWithUint64 (line 560) | func TestDecrementWithUint64(t *testing.T) { function TestDecrementWithFloat32 (line 576) | func TestDecrementWithFloat32(t *testing.T) { function TestDecrementWithFloat64 (line 592) | func TestDecrementWithFloat64(t *testing.T) { function TestDecrementFloatWithFloat32 (line 608) | func TestDecrementFloatWithFloat32(t *testing.T) { function TestDecrementFloatWithFloat64 (line 624) | func TestDecrementFloatWithFloat64(t *testing.T) { function TestIncrementInt (line 640) | func TestIncrementInt(t *testing.T) { function TestIncrementInt8 (line 659) | func TestIncrementInt8(t *testing.T) { function TestIncrementInt16 (line 678) | func TestIncrementInt16(t *testing.T) { function TestIncrementInt32 (line 697) | func TestIncrementInt32(t *testing.T) { function TestIncrementInt64 (line 716) | func TestIncrementInt64(t *testing.T) { function TestIncrementUint (line 735) | func TestIncrementUint(t *testing.T) { function TestIncrementUintptr (line 754) | func TestIncrementUintptr(t *testing.T) { function TestIncrementUint8 (line 773) | func TestIncrementUint8(t *testing.T) { function TestIncrementUint16 (line 792) | func TestIncrementUint16(t *testing.T) { function TestIncrementUint32 (line 811) | func TestIncrementUint32(t *testing.T) { function TestIncrementUint64 (line 830) | func TestIncrementUint64(t *testing.T) { function TestIncrementFloat32 (line 849) | func TestIncrementFloat32(t *testing.T) { function TestIncrementFloat64 (line 868) | func TestIncrementFloat64(t *testing.T) { function TestDecrementInt8 (line 887) | func TestDecrementInt8(t *testing.T) { function TestDecrementInt16 (line 906) | func TestDecrementInt16(t *testing.T) { function TestDecrementInt32 (line 925) | func TestDecrementInt32(t *testing.T) { function TestDecrementInt64 (line 944) | func TestDecrementInt64(t *testing.T) { function TestDecrementUint (line 963) | func TestDecrementUint(t *testing.T) { function TestDecrementUintptr (line 982) | func TestDecrementUintptr(t *testing.T) { function TestDecrementUint8 (line 1001) | func TestDecrementUint8(t *testing.T) { function TestDecrementUint16 (line 1020) | func TestDecrementUint16(t *testing.T) { function TestDecrementUint32 (line 1039) | func TestDecrementUint32(t *testing.T) { function TestDecrementUint64 (line 1058) | func TestDecrementUint64(t *testing.T) { function TestDecrementFloat32 (line 1077) | func TestDecrementFloat32(t *testing.T) { function TestDecrementFloat64 (line 1096) | func TestDecrementFloat64(t *testing.T) { function TestAdd (line 1115) | func TestAdd(t *testing.T) { function TestReplace (line 1127) | func TestReplace(t *testing.T) { function TestDelete (line 1140) | func TestDelete(t *testing.T) { function TestItemCount (line 1153) | func TestItemCount(t *testing.T) { function TestFlush (line 1163) | func TestFlush(t *testing.T) { function TestIncrementOverflowInt (line 1184) | func TestIncrementOverflowInt(t *testing.T) { function TestIncrementOverflowUint (line 1199) | func TestIncrementOverflowUint(t *testing.T) { function TestDecrementUnderflowUint (line 1213) | func TestDecrementUnderflowUint(t *testing.T) { function TestOnEvicted (line 1227) | func TestOnEvicted(t *testing.T) { function TestCacheSerialization (line 1250) | func TestCacheSerialization(t *testing.T) { function testFillAndSerialize (line 1259) | func testFillAndSerialize(t *testing.T, tc *Cache) { function TestFileSerialization (line 1377) | func TestFileSerialization(t *testing.T) { function TestSerializeUnserializable (line 1416) | func TestSerializeUnserializable(t *testing.T) { function BenchmarkCacheGetExpiring (line 1428) | func BenchmarkCacheGetExpiring(b *testing.B) { function BenchmarkCacheGetNotExpiring (line 1432) | func BenchmarkCacheGetNotExpiring(b *testing.B) { function benchmarkCacheGet (line 1436) | func benchmarkCacheGet(b *testing.B, exp time.Duration) { function BenchmarkRWMutexMapGet (line 1446) | func BenchmarkRWMutexMapGet(b *testing.B) { function BenchmarkRWMutexInterfaceMapGetStruct (line 1460) | func BenchmarkRWMutexInterfaceMapGetStruct(b *testing.B) { function BenchmarkRWMutexInterfaceMapGetString (line 1475) | func BenchmarkRWMutexInterfaceMapGetString(b *testing.B) { function BenchmarkCacheGetConcurrentExpiring (line 1489) | func BenchmarkCacheGetConcurrentExpiring(b *testing.B) { function BenchmarkCacheGetConcurrentNotExpiring (line 1493) | func BenchmarkCacheGetConcurrentNotExpiring(b *testing.B) { function benchmarkCacheGetConcurrent (line 1497) | func benchmarkCacheGetConcurrent(b *testing.B, exp time.Duration) { function BenchmarkRWMutexMapGetConcurrent (line 1517) | func BenchmarkRWMutexMapGetConcurrent(b *testing.B) { function BenchmarkCacheGetManyConcurrentExpiring (line 1541) | func BenchmarkCacheGetManyConcurrentExpiring(b *testing.B) { function BenchmarkCacheGetManyConcurrentNotExpiring (line 1545) | func BenchmarkCacheGetManyConcurrentNotExpiring(b *testing.B) { function benchmarkCacheGetManyConcurrent (line 1549) | func benchmarkCacheGetManyConcurrent(b *testing.B, exp time.Duration) { function BenchmarkCacheSetExpiring (line 1577) | func BenchmarkCacheSetExpiring(b *testing.B) { function BenchmarkCacheSetNotExpiring (line 1581) | func BenchmarkCacheSetNotExpiring(b *testing.B) { function benchmarkCacheSet (line 1585) | func benchmarkCacheSet(b *testing.B, exp time.Duration) { function BenchmarkRWMutexMapSet (line 1594) | func BenchmarkRWMutexMapSet(b *testing.B) { function BenchmarkCacheSetDelete (line 1606) | func BenchmarkCacheSetDelete(b *testing.B) { function BenchmarkRWMutexMapSetDelete (line 1616) | func BenchmarkRWMutexMapSetDelete(b *testing.B) { function BenchmarkCacheSetDeleteSingleLock (line 1631) | func BenchmarkCacheSetDeleteSingleLock(b *testing.B) { function BenchmarkRWMutexMapSetDeleteSingleLock (line 1643) | func BenchmarkRWMutexMapSetDeleteSingleLock(b *testing.B) { function BenchmarkIncrementInt (line 1656) | func BenchmarkIncrementInt(b *testing.B) { function BenchmarkDeleteExpiredLoop (line 1666) | func BenchmarkDeleteExpiredLoop(b *testing.B) { function TestGetWithExpiration (line 1680) | func TestGetWithExpiration(t *testing.T) { FILE: sharded.go type unexportedShardedCache (line 22) | type unexportedShardedCache struct type shardedCache (line 26) | type shardedCache struct method bucket (line 65) | func (sc *shardedCache) bucket(k string) *cache { method Set (line 69) | func (sc *shardedCache) Set(k string, x interface{}, d time.Duration) { method Add (line 73) | func (sc *shardedCache) Add(k string, x interface{}, d time.Duration) ... method Replace (line 77) | func (sc *shardedCache) Replace(k string, x interface{}, d time.Durati... method Get (line 81) | func (sc *shardedCache) Get(k string) (interface{}, bool) { method Increment (line 85) | func (sc *shardedCache) Increment(k string, n int64) error { method IncrementFloat (line 89) | func (sc *shardedCache) IncrementFloat(k string, n float64) error { method Decrement (line 93) | func (sc *shardedCache) Decrement(k string, n int64) error { method Delete (line 97) | func (sc *shardedCache) Delete(k string) { method DeleteExpired (line 101) | func (sc *shardedCache) DeleteExpired() { method Items (line 112) | func (sc *shardedCache) Items() []map[string]Item { method Flush (line 120) | func (sc *shardedCache) Flush() { function djb33 (line 34) | func djb33(seed uint32, k string) uint32 { type shardedJanitor (line 126) | type shardedJanitor struct method Run (line 131) | func (j *shardedJanitor) Run(sc *shardedCache) { function stopShardedJanitor (line 144) | func stopShardedJanitor(sc *unexportedShardedCache) { function runShardedJanitor (line 148) | func runShardedJanitor(sc *shardedCache, ci time.Duration) { function newShardedCache (line 156) | func newShardedCache(n int, de time.Duration) *shardedCache { function unexportedNewSharded (line 181) | func unexportedNewSharded(defaultExpiration, cleanupInterval time.Durati... FILE: sharded_test.go function TestShardedCache (line 29) | func TestShardedCache(t *testing.T) { function BenchmarkShardedCacheGetExpiring (line 36) | func BenchmarkShardedCacheGetExpiring(b *testing.B) { function BenchmarkShardedCacheGetNotExpiring (line 40) | func BenchmarkShardedCacheGetNotExpiring(b *testing.B) { function benchmarkShardedCacheGet (line 44) | func benchmarkShardedCacheGet(b *testing.B, exp time.Duration) { function BenchmarkShardedCacheGetManyConcurrentExpiring (line 54) | func BenchmarkShardedCacheGetManyConcurrentExpiring(b *testing.B) { function BenchmarkShardedCacheGetManyConcurrentNotExpiring (line 58) | func BenchmarkShardedCacheGetManyConcurrentNotExpiring(b *testing.B) { function benchmarkShardedCacheGetManyConcurrent (line 62) | func benchmarkShardedCacheGetManyConcurrent(b *testing.B, exp time.Durat...