Versions in this module Expand all Collapse all v0 v0.2.4 Jul 14, 2020 Changes in this version + func GetCacheKey(key string) (string, string) v0.2.3 Jul 3, 2020 Changes in this version + func ByteCountIEC(b int) string + type ByTimestamp []KeyPair + func (a ByTimestamp) Len() int + func (a ByTimestamp) Less(i, j int) bool + func (a ByTimestamp) Swap(i, j int) + type Cache struct + func New(directory string, cacheLimit int, cacheScanInterval int, maxCacheScanTime int) *Cache + func (c *Cache) Close() + func (c *Cache) DeleteFile(file string) + func (c *Cache) Get(key string) (resp []byte, ok bool) + func (c *Cache) Set(key string, resp []byte) + func (c *Cache) StartBackgroundThread() + func (c *Cache) UpdateCacheLimit(cacheLimit int) + func (c *Cache) UpdateCacheScanInterval(cacheScanInterval int) + type KeyPair struct + Key string + Size int + Timestamp int64 + func (a *KeyPair) UpdateTimestamp()