Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Clear()
- func (c *Cache) Contents() string
- func (c *Cache) Count() int
- func (c *Cache) Delete(key string)
- func (c *Cache) Exists(key string) bool
- func (c *Cache) Get(key string) (string, bool)
- func (c *Cache) Keys() []string
- func (c *Cache) Set(key, value string)
- func (c *Cache) Values() []string
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 wrapper around the go-cache library.
func NewWithData ¶
NewWithData constructs a new in-memory cache with existing data.
func (*Cache) Contents ¶
Contents returns a comma-separated string containing all keys in the cache.
Click to show internal directories.
Click to hide internal directories.