Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is a barebones cache implementation.
func (*Cache) Evict ¶
func (c *Cache) Evict()
Evict frees memory from the cache by removing invalid keys. It is a noop.
func (*Cache) Invalidate ¶
Invalidate invalidates a cache Entry by key.
type Entry ¶
type Entry struct { V interface{} Valid bool }
Entry represents an entry on the cache. You can type assert on V.
Click to show internal directories.
Click to hide internal directories.