public async Task Can_StoreAll_and_GetByIds_ModelWithIdAndName() { var tos = Factory.CreateList(); var ids = tos.ConvertAll(x => x.GetId().ToString()); await redis.StoreAllAsync(tos); var froms = await redis.GetByIdsAsync(ids); var fromIds = froms.Map(x => x.GetId().ToString()); Assert.That(fromIds, Is.EquivalentTo(ids)); }
public async Task <List <T> > GetByIdsAsync(IEnumerable ids, CancellationToken token = default) { return((await redisTypedClient.GetByIdsAsync(ids, token)).ToList()); }