Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are different Cache Writing Strategies?
Home
Cache Technique
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.
Related questions
0
votes
Q: What is Cache Invalidation?
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
cache-technology
0
votes
Q: What are some alternatives to Cache Invalidation?
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
cache-technology-questions-answers
0
votes
Q: what is Cache Stampede?
asked
Mar 23, 2023
in
Cache Technique
by
GeorgeBell
cache-technology-questions-answers
0
votes
Q: Top 50 Cache Technique Interview Questions and Answers
asked
Jun 23, 2022
in
Cache Technique
by
sharadyadav1986
cache
cache-technique
cache-memory
cache-validation
cache-mapping
cache-questions
cache-mcq
0
votes
Q: Which function is used to return hdfs files to ship to distributed cache.
asked
Dec 6, 2020
in
Cache Technique
by
rajeshsharma
#distributed-cache
+1
vote
Q: In which type of cache, application directly interacts with database for data that is not available in the cache?
asked
Aug 3, 2020
in
Cache Technique
by
Hodge
#cache
#cache-applications
cache-techniques
0
votes
Q: For a cache look up to be a Hit, which of the following must be true?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#cache-loop-up
#loopup-cache
#cache-lookup
0
votes
Q: Which of the following is used to determine if a piece of data in the cache needs to be written back to the cache?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#cache-needs
#needs-cache
0
votes
Q: Which of the following Cache Eviction techniques consider Locality?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#cache-eviction-techniques
#eviction-techniques
#cache-eviction
0
votes
Q: A cache has 1024 blocks, and each block can contain 1024 bits of data. What is the size of the cache?
asked
Jul 1, 2020
in
Cache Technique
by
Robindeniel
#cache-block
#block-cache
...