FIS Interview Question

How do databases use the hardware cache and software cache