// Delete removes an item from the shard.
// And returns true if an item was deleted and
// false if the key didn't exist in the shard.
// Delete doesnt shrink the size of the byte-array
// nor of the shard.
// It only enables the space to be reused.
Delete removes an item from the shard.
And returns true if an item was deleted and
false if the key didn't exist in the shard.
Delete doesnt shrink the size of the byte-array
nor of the shard.
It only enables the space to be reused.
// Delete removes an item from the shard . // And returns true if an item was deleted and // false if the key didn ' t exist in the shard . // Delete doesnt shrink the size of the byte - array // nor of the shard . // It only enables the space to be reused .
func (S *Shard) Delete(key uint64) bool {
	S.Lock()
	defer S.Unlock()
	S.hitExpirationService(key, ExpirationService.Remove)
	return S.UnsafeDelete(key)
}
func ( S * Shard ) Delete ( key uint64 ) bool { S . Lock ( ) defer S . Unlock ( ) S . hitExpirationService ( key , ExpirationService . Remove ) return S . UnsafeDelete ( key ) }
Delete removes an item from the shard.
Delete removes an item from the shard .