README ¶ timecache Timecache is an lru cache that keeps entries for up to a specified time duration. After a specified period of time has elapsed, 'old' entries will be purged from the set. License MIT Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type TimeCache func NewTimeCache(span time.Duration) *TimeCache func (tc *TimeCache) Add(s string) func (tc *TimeCache) Has(s string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type TimeCache ¶ type TimeCache struct { Q *list.List M map[string]time.Time // contains filtered or unexported fields } func NewTimeCache ¶ func NewTimeCache(span time.Duration) *TimeCache func (*TimeCache) Add ¶ func (tc *TimeCache) Add(s string) func (*TimeCache) Has ¶ func (tc *TimeCache) Has(s string) bool Source Files ¶ View all Source files timecache.go Click to show internal directories. Click to hide internal directories.