Documentation ¶
Overview ¶
Package diskcache provides an implementation of httpcache.Cache that uses the diskv package to supplement an in-memory map with persistent storage
Index ¶
- Variables
- type Cache
- func (c *Cache) Action(name string, args ...interface{}) (map[string]*interface{}, error)
- func (c *Cache) Debug(action string)
- func (c *Cache) Delete(key string)
- func (c *Cache) Flush()
- func (c *Cache) Get(key string) (resp []byte, ok bool)
- func (c *Cache) GetCacheSizeMax() uint64
- func (c *Cache) Set(key string, resp []byte)
- func (c *Cache) SetNewCacheSizeMax(expire uint64)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginConfig = &diskvcacheConfig{ done: make(chan struct{}), } )
Config ...
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache is an implementation of httpcache.Cache that supplements the in-memory map with persistent storage
func (*Cache) GetCacheSizeMax ¶
func (*Cache) SetNewCacheSizeMax ¶
Click to show internal directories.
Click to hide internal directories.