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
}
type CacheInterface ¶
type SimpleCache ¶
type SimpleCache struct {
// contains filtered or unexported fields
}
func NewSimple ¶
func NewSimple(capacity int) *SimpleCache
func (*SimpleCache) Delete ¶
func (c *SimpleCache) Delete(key string) interface{}
func (*SimpleCache) Flush ¶
func (c *SimpleCache) Flush()
func (*SimpleCache) Get ¶
func (c *SimpleCache) Get(key string) interface{}
func (*SimpleCache) Len ¶
func (c *SimpleCache) Len() int
func (*SimpleCache) Set ¶
func (c *SimpleCache) Set(key string, value interface{})
Click to show internal directories.
Click to hide internal directories.