0 votes
in Cache Technique by
What are different Cache Writing Strategies?

1 Answer

0 votes
by

There are two common strategies to write data in a cache:

  1. Pre-caching data, for small pieces of data, usually during the application initialization, before any request.
  2. On-demand, checking first if the requested data is in the cache (if the data is found, it is called a cache hit), using it, improving the performance of the application. Whenever the requested data has not been written to the cache (cache miss), the application will need to retrieve it from the slower source, then writing the results in the cache, thus saving time on subsequent requests for the same data.

Related questions

0 votes
asked Dec 6, 2020 in Cache Technique by rajeshsharma
0 votes
asked Jul 1, 2020 in Cache Technique by Robindeniel
...