Give cache generator function a promise interface