Documentation ¶ Index ¶ type Cache func NewCache(cleanupInterval time.Duration) *Cache func (c *Cache) Get(key string) *Item func (c *Cache) Set(key string, item *Item) type Item func NewItem(v interface{}, d time.Duration) *Item func (p *Item) Expired() bool func (p *Item) Value() interface{} 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 } func NewCache ¶ func NewCache(cleanupInterval time.Duration) *Cache func (*Cache) Get ¶ func (c *Cache) Get(key string) *Item func (*Cache) Set ¶ func (c *Cache) Set(key string, item *Item) type Item ¶ type Item struct { // contains filtered or unexported fields } func NewItem ¶ func NewItem(v interface{}, d time.Duration) *Item func (*Item) Expired ¶ func (p *Item) Expired() bool func (*Item) Value ¶ func (p *Item) Value() interface{} Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.