ListRange() public method

public ListRange ( string key, int start, int end ) : byte[][]
key string
start int
end int
return byte[][]
 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());
 }
示例#3
0
 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());
 }