Documentation ¶ Index ¶ type Cache func New() *Cache func NewWithGCThold(gcThold int) *Cache func (c *Cache) Delete(key string) func (c *Cache) GC(force bool) func (c *Cache) Get(key string) (interface{}, bool) func (c *Cache) Set(key string, value interface{}, expirationParam ...time.Duration) 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 New ¶ func New() *Cache func NewWithGCThold ¶ func NewWithGCThold(gcThold int) *Cache func (*Cache) Delete ¶ func (c *Cache) Delete(key string) func (*Cache) GC ¶ func (c *Cache) GC(force bool) func (*Cache) Get ¶ func (c *Cache) Get(key string) (interface{}, bool) func (*Cache) Set ¶ func (c *Cache) Set(key string, value interface{}, expirationParam ...time.Duration) Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.