Documentation ¶
Index ¶
Constants ¶
View Source
const (
//MaxCacheLen number of jobs held in cache
MaxCacheLen = 128
)
Variables ¶
View Source
var ( //ErrCacheFull occurs when cache is filled up ErrCacheFull = errors.New("Cache: Cache filled up") )
Functions ¶
This section is empty.
Types ¶
type JobCache ¶
type JobCache struct {
// contains filtered or unexported fields
}
JobCache holds most likely to be executed jobs
func NewJobCache ¶
func NewJobCache(bc *core.BlockChain) *JobCache
NewJobCache return s initialized job cache
func NewJobCacheNoWatch ¶
func NewJobCacheNoWatch(bc *core.BlockChain) *JobCache
NewJobCacheNoWatch creates a new jobcache without updating every minute
Click to show internal directories.
Click to hide internal directories.