Example #1
0
 public Task <List <UserDto> > GetAll()
 {
     return(_redisManager.GetOrRun(RedisKeyConsts.User,
                                   () => _dbSet.AsQueryable()
                                   .ProjectToType <UserDto>()
                                   .ToListAsync()));
 }