Documentation ¶
Index ¶
- Constants
- type Cache
- func (c *Cache) Add(k string, v interface{}, d time.Duration) error
- func (c *Cache) Count() int
- func (c *Cache) Delete(k string)
- func (c *Cache) DeleteExpired()
- func (c *Cache) Flush()
- func (c *Cache) Get(k string) (interface{}, bool)
- func (c *Cache) Load(r io.Reader) error
- func (c *Cache) LoadFromFile(filename string) error
- func (c *Cache) Replace(k string, v interface{}, d time.Duration) error
- func (c *Cache) Save(w io.Writer) (err error)
- func (c *Cache) SaveToFile(filename string) error
- func (c *Cache) Set(k string, v interface{}, d time.Duration, isSlide bool)
- func (c *Cache) StopGc()
- type Item
Constants ¶
View Source
const (
NoExpiration time.Duration = -1 //No expiration mark
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.