Monday 24 November 2014

What is cache?

Cache is a component that is used to store frequently accessed data, so each request to that data is faster.

Why should I cache my data in Applications?
Now a day’s performance is an important concern for any application like web, desktop, mobile etc. So if you understand your application, then you know better, what objects are frequently used, what object require more time to initialize in the application. So instead of creating that object for every request, it is always better approach to cache that object. Use the cached object to serve these frequent requests.

Can I cache all the objects?
Ideally it is not good idea to cache sensitive information. It is not acceptable to cache sensitive information like
1.   User passwords.
2.   User credit card or SSN details
3.   Data that changes frequently is not ideal place to cache
4.   Remember cache is limited, so cache objects that serve requests most frequently (OR) take more time to create etc.


Prevoius                                                 Next                                                 Home

No comments:

Post a Comment