Documentation ¶
Index ¶
Constants ¶
View Source
const ( NegativeTimeoutPrefix = "t:" PositiveDurationPrefix = "d:" )
Variables ¶
This section is empty.
Functions ¶
func DefaultNewSchedule ¶
Types ¶
type NewScheduleFunc ¶
type PullHandle ¶
type PullHandle func() (interface{}, error)
type RefreshCache ¶
type RefreshCache struct {
Cache
}
func (*RefreshCache) Add ¶
func (c *RefreshCache) Add(name string, sec int, get PullHandle)
func (*RefreshCache) Get ¶
func (c *RefreshCache) Get(name string) (interface{}, error)
type TimeoutCache ¶
type TimeoutCache struct {
Cache
}
func (*TimeoutCache) Add ¶
func (c *TimeoutCache) Add(name string, sec int, get PullHandle)
func (*TimeoutCache) Get ¶
func (c *TimeoutCache) Get(name string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.