Example #1
0
        public bool RemoveKey(Guid key)
        {
            byte[] bkey = key.ToByteArray();
            int    hc   = (int)Helper.MurMur.Hash(bkey);

            return(_db.RemoveKey(hc));
        }
Example #2
0
        public bool RemoveKey(string key)
        {
            string str = (_caseSensitive ? key : key.ToLower());

            byte[] bkey = Encoding.Unicode.GetBytes(str);
            //int hc = (int)Helper.MurMur.Hash(bkey);
            int hc = key.GetHashCode();

            return(_db.RemoveKey(hc));
        }