Documentation ¶
Index ¶
- type Cache
- type Load
- type PassiveCache
- func (c *PassiveCache) Delete(name string) error
- func (c *PassiveCache) Get(name string) (interface{}, error)
- func (c *PassiveCache) GetAndStore(name string, duration time.Duration, handle Load) (interface{}, error)
- func (c *PassiveCache) Init()
- func (c *PassiveCache) Run()
- func (c *PassiveCache) Stop()
- type ProactiveCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PassiveCache ¶
type PassiveCache struct {
// contains filtered or unexported fields
}
**** PassiveCache
func (*PassiveCache) Delete ¶
func (c *PassiveCache) Delete(name string) error
func (*PassiveCache) Get ¶
func (c *PassiveCache) Get(name string) (interface{}, error)
func (*PassiveCache) GetAndStore ¶
func (*PassiveCache) Init ¶
func (c *PassiveCache) Init()
func (*PassiveCache) Run ¶
func (c *PassiveCache) Run()
func (*PassiveCache) Stop ¶
func (c *PassiveCache) Stop()
type ProactiveCache ¶
type ProactiveCache struct {
// contains filtered or unexported fields
}
**** ProactiveCache
func (*ProactiveCache) Get ¶
func (c *ProactiveCache) Get(name string) (interface{}, error)
func (*ProactiveCache) Init ¶
func (c *ProactiveCache) Init()
func (*ProactiveCache) Remove ¶
func (c *ProactiveCache) Remove(name string) error
func (*ProactiveCache) Run ¶
func (c *ProactiveCache) Run()
func (*ProactiveCache) Stop ¶
func (c *ProactiveCache) Stop()
Click to show internal directories.
Click to hide internal directories.