A cache is a temporary storage area that stores the result of expensive responses or frequently accessed data in memory so that subsequent requests are served more quickly. As illustrated in Figure 6, every time a new web page loads, one or more database calls are executed to fetch data. The application performance is greatly affected by calling the database repeatedly. The cache can mitigate this problem.
xxxxxxxxxx
What is the caching mechanism?
Caching is just the practice of storing data in
temporarily and retrieving data from a
high-performance store (usually memory)
either explicitly or implicitly. @CacheLookup
is used with @FindBy annotation and keeps
that web element in memory and makes it ready
to use everytime. You can use that approach
if you use any web elemnent frequently.