Cache.php: Implement writeMany, readMany, deleteMany

The clean implementation of my proposal #3137