expose batch flush api.
update unit test for batch.
update unit test for batch.
update batch op.
update cache to use batch op.