func (store *JobStore) LoadJobs() {

	store.Lock()
	result := store.getter.Load()
	for _, jobbase := range result {
		jobbase.Version = 0 //first load, set version to memory is zero, wait re-alloc.
		store.jobs[jobbase.JobId] = jobbase
		logger.INFO("[#cache#] read jobid:%s fcode:%s version:%d", jobbase.JobId, jobbase.FileCode, jobbase.Version)
	}
	logger.INFO("[#cache#] cache jobs count %d.", len(store.jobs))
	store.Unlock()
}
//LoadJobs is exported
//load cache root jobs directory data.
LoadJobs is exported
load cache root jobs directory data.
// LoadJobs is exported // load cache root jobs directory data .
func (store *JobStore) LoadJobs() {
	store.Lock()
	result := store.getter.Load()
	for _, jobbase := range result {
		jobbase.Version = 0 
		store.jobs[jobbase.JobId] = jobbase
		logger.INFO("[#cache#] read jobid:%s fcode:%s version:%d", jobbase.JobId, jobbase.FileCode, jobbase.Version)
	}
	logger.INFO("[#cache#] cache jobs count %d.", len(store.jobs))
	store.Unlock()
}
func ( store * JobStore ) LoadJobs ( ) { store . Lock ( ) result := store . getter . Load ( ) for _ , jobbase := range result { jobbase . Version = 0 store . jobs [ jobbase . JobId ] = jobbase logger . INFO ( " " , jobbase . JobId , jobbase . FileCode , jobbase . Version ) } logger . INFO ( " " , len ( store . jobs ) ) store . Unlock ( ) }
LoadJobs is exported
load cache root jobs directory data.
LoadJobs is exported load cache root jobs directory data .
//first load, set version to memory is zero, wait re-alloc.