Esempio n. 1
0
 public static string BlockingPopAndPushItemBetweenLists(string fromListId, string toListId, TimeSpan?timeOut)
 {
     using (RedisClient client = GetClient())
     {
         return(client.BlockingPopAndPushItemBetweenLists(fromListId, toListId, timeOut));
     }
 }
Esempio n. 2
0
 public string BlockingPopAndPushItemBetweenLists(string fromListId, string toListId, TimeSpan?timeOut)
 {
     return(redisClient.BlockingPopAndPushItemBetweenLists(fromListId, toListId, timeOut));
 }
Esempio n. 3
0
 /// <summary>
 /// 阻塞命令:从list中一个fromkey的尾部移除一个值,添加到另外一个tokey的头部,并返回移除的值,阻塞时间为sp
 /// </summary>
 public string BlockingPopAndPushItemBetweenLists(string fromkey, string tokey, TimeSpan?sp)
 {
     return(RedisClient.BlockingPopAndPushItemBetweenLists(fromkey, tokey, sp));
 }