FIS interview question

How do databases use the hardware cache and software cache