public override List <string> GetRangeFromList(string key, int startingFrom, int endingAt) { return(Redis.ListRange(GetRedisKey(key), startingFrom, endingAt).ToStringList()); }
public override List <string> GetAllItemsFromList(string key) { return(Redis.ListRange(GetRedisKey(key)).ToStringList()); }
public List <ICommandEnvelope> GetMessages(string queueName, long from, long to) { return(Redis.ListRange(queueName, from, to) .ToStringArray() .Select(x => x.DeserializeFromJson <CommandEnvelope>() as ICommandEnvelope).ToList()); }