Beispiel #1
0
 public void Sort(CompareKey comparer = null)
 {
     comparer = comparer ?? comparerKey;
     for (int i = 0; i < Keys.Count; i++)
     {
         for (int j = i + 1; j < Keys.Count; j++)
         {
             if (comparer(Keys[i], Keys[j]))
             {
                 var tmp1 = Keys[i];
                 Keys[i] = Keys[j];
                 Keys[j] = tmp1;
                 var tmp2 = Vals[i];
                 Vals[i] = Vals[j];
                 Vals[j] = tmp2;
             }
         }
     }
 }
Beispiel #2
0
        public long ZUnionStore(string NewKey, params string[] CompareKey)
        {
            var v1 = CompareKey.Append(Key).ToArray();

            return(DB.DB.ZUnionStore(NewKey, null, CSRedis.RedisAggregate.Max, v1));
        }