what is the relationship between cache and database and main
 what is the relationship between cache and database and main memory
  what is the relationship between cache and database and main memory
Solution
Cache memory is smaller in capacity than RAM or main memory.Cache is closer to CPU to provide data fastly for immediate computations where as main memory also provides data for processing but slowly as it is far from CPU and connected by bus.
A database is a storage structure that is hosted on secondary storage of a server computer and there will be a dbms program running in main memory to perform database operations like insert update delete etc.The data is stored on cache and main memory when server responds immediately to client requests.

