Beispiel #1
0
        public static int Compare(CByte Left, CByte Right)
        {
            if (ReferenceEquals(Right, null))
            {
                return(-1);
            }
            else if (ReferenceEquals(Left, null))
            {
                return(1);
            }

            return(Compare(Left.Bytes, Right.Bytes));
        }
Beispiel #2
0
 public static int Compare(CByte Left, byte[] Right)
 {
     return(Compare(Left.Bytes, Right));
 }
Beispiel #3
0
 public static int Compare(byte[] Left, CByte Right)
 {
     return(Compare(Left, Right.Bytes));
 }
Beispiel #4
0
 public int CompareTo(CByte HashObject)
 {
     return(Compare(this.Bytes, HashObject.Bytes));
 }
Beispiel #5
0
 public abstract bool Remove(CByte Key);
Beispiel #6
0
 public abstract CacheItem Get(CByte Key);
Beispiel #7
0
 public abstract T Get <T>(CByte Key) where T : Hashable;
Beispiel #8
0
 public abstract bool Exists(CByte Key);
Beispiel #9
0
 public abstract bool AddOrUpdate <T>(CByte Key, T Value, TimeSpan ExpireSpan) where T : Hashable;