ListLength() public method

public ListLength ( string key ) : int
key string
return int
Ejemplo n.º 1
0
 public void Recover()
 {
     for (var i = 0; i < Redis.ListLength(PendingQueueName); i++)
     {
         PublishToChannel();
     }
 }
Ejemplo n.º 2
0
 public Dictionary <string, long> GetQueueLengths()
 {
     return(new Dictionary <string, long> {
         { "Pending", Redis.ListLength(PendingQueueName) },
         { "In-progress", Redis.ListLength(InProgressQueueName) },
         { "Failed", Redis.ListLength(FailedQueueName) }
     });
 }
 public override long GetListCount(string key)
 {
     return(Redis.ListLength(GetRedisKey(key)));
 }