public bool RemoveKey(Guid key) { byte[] bkey = key.ToByteArray(); int hc = (int)Helper.MurMur.Hash(bkey); MemoryStream ms = new MemoryStream(); ms.Write(Helper.GetBytes(bkey.Length, false), 0, 4); ms.Write(bkey, 0, bkey.Length); return(_db.Delete(hc, ms.ToArray())); }
public bool RemoveKey(string key) { var bkey = Encoding.Unicode.GetBytes(key); int hc = (int)Helper.Murmur.Hash(bkey); var ms = new MemoryStream(); ms.Write(Helper.GetBytes(bkey.Length, false), 0, 4); ms.Write(bkey, 0, bkey.Length); return(_db.Delete(hc, ms.ToArray())); }