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