The application checks the cache first; on a miss it reads the database and writes the result into the cache.