Login
Remember
Register
Ask a Question
What are different Cache Writing Strategies?
0
votes
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
What are different Cache Writing Strategies?
cache-technology
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 23, 2023
by
GeorgeBell
There are two common strategies to write data in a cache:
Pre-caching data
, for small pieces of data, usually during the application initialization, before any request.
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.
...