0
내가 다음StackExchange.Redis SortAndStoreAsync
var database = _connection.GetDatabase();
var identifiers = await database.ListRangeAsync("people_by_name", index, index + count);
전화를 갱신
public Task WriteAsync(IDataTransaction transaction, Person model)
{
var redis = transaction.GetContext<RedisTransactionContext>().RedisTransaction;
redis.SetAddAsync("people", model.Identifier);
redis.StringSetAsync(model.Identifier, JsonConvert.SerializeObject(model));
redis.StringSetAsync($"people_name_{model.Identifier}", model.Name.FullReverse());
redis.SortAndStoreAsync("people_by_name", "people", by: "people_name_*");
return Task.CompletedTask;
}
에 사람들의 정렬 된 목록을 캐시 위의 전화를 시도하고 있지만 SortAndStoreAsync으로 새로운 목록을 찾을 수 없습니다 정렬 된 목록을 만들지 않았습니다. 다른 모든 데이터는 거기에 있습니다.
내가 잘못하고 있는데, 트랜잭션 내에서 SortAndStoreAsync가 지원됩니까? 당신이 SO했다으로