/// <summary> /// Delete the batch of keys. /// </summary> /// <param name="batch">Batch of keys to delete.</param> public void DeleteBatch(IEnumerable<string> batch) { var writeBatch = new WriteBatch(); foreach (var key in batch) { writeBatch.Delete(key); } writeBatch.Commit(db); }
/// <summary> /// Put the batch of keys and values in the storage. /// </summary> /// <param name="batch">Batch of keys and values.</param> public void PutBatch(Dictionary<string, string> batch) { var writeBatch = new WriteBatch(); foreach (var column in batch) { writeBatch.Put(column.Key, column.Value); } writeBatch.Commit(db); }