示例#1
0
 public TaskListViewModel GetConfirmationRecord(string userId, string urn)
 {
     return(_cache.GetOrCreate("GetConfirmationRecord" + CheckingWindow + userId + urn,
                               () => _schoolService.GetConfirmationRecord(userId, urn), null, databaseId: RedisDb.General));
 }
 public AmendmentsListViewModel GetAmendmentsListViewModel(string urn)
 {
     return(_cache.GetOrCreate(string.Format(GetAmendmentKeyFormat, CheckingWindow, urn), () => _amendmentService.GetAmendmentsListViewModel(urn),
                               TimeSpan.FromDays(1), databaseId: RedisDb.General));
 }
示例#3
0
 public string GetSchoolName(string laestab)
 {
     return(_cache.GetOrCreate("GetSchoolName" + CheckingWindow + laestab, () => _establishmentService.GetSchoolName(laestab),
                               null, databaseId: RedisDb.General));
 }
 public List <PupilViewModel> GetPupilDetailsList(SearchQuery searchQuery)
 {
     return(_cache.GetOrCreate("GetPupilDetailsList" + CheckingWindow + searchQuery.URN + searchQuery.Query, () => _service.GetPupilDetailsList(searchQuery), null, databaseId: RedisDb.General));
 }