Documentation ¶ Overview ¶ Package cache provides a simple ttl-based item cache Index ¶ type Cache func NewCacheWithTTL(t time.Duration) Cache Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache interface { // Insert the string k Insert(k string) // Exists proves the existence or lack-thereof of the item k in the cache Exists(k string) (exists bool) } Cache provides a simple item store func NewCacheWithTTL ¶ func NewCacheWithTTL(t time.Duration) Cache NewCacheWithTTL creates a new cache with ttl of t Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.