Cache: Implement writeMany, readMany, deleteMany

Squashed implementation + tests of atomic (many) cache operations.
#3278