Cache vs static

Question posted in Computer Software on 05 2011
Rate question difficulty level 0 Votes
what is the different between cache and static object ?
 
 
21 Answers
 
By using cache framework you can easily add logic which could run on when cache is expired, how it is updated, how often, etc..

If you load data in static, it will be there forever and eventually corrupt. At some point you have to update it to reflect the changes in the database. At each database update, you could add SQLCachedependency.

The Application and Cache collections do not serialize the objects you pass into them, they store the actual reference. Retrieving an object from Cache will not be an expensive operation, no matter how large the object is. Always stick with the Cache objects unless you have a very good reason not to, its just good practice.

05/23/2011
 
 
Well done artlice that. I'll make sure to use it wisely.

01/11/2012
 
 

01/12/2012
 
 
 
 
A cache doesn't have to store data in memory, and there's a world of difference between a data-storage concept (cache) and an implementation of an OOP principle in a specific language and framework (static variable).

I could implement a cache in at least 20-25 different ways, ranging from in-memory, to a flat file or a database, but I can only implement a static variable in one way.

Cache involves serialization (and de-serialization) whereas static are pre-declared by data type they're going to hold (unless they're 'object').Cache offers features like invalidation callbacks, sliding or absolute expiration etc.

02/27/2012
 
 
There is so many different things that go with this. You really have to do your research on this. It will pay off in the long run for you. actos bladder

04/10/2012
 
 
This is a great blog posting and very useful. I really appreciate the research you put into it.

Franchise in india

Franchise research reports

Brand management consultants

Franchising management



04/13/2012
 
 
 
 
After reading your article I was amazed. I know that you explain it very well. And I hope that other readers will also experience how I feel after reading your article. I feel very grateful that I read this. It is very helpful and very informative and I really learned a lot from it.
palm hills gurgaon
emaar mgf palm gardens
palm gardens gurgaon
And
buy property in gurgaon *
Residential plots in dharuhera

04/17/2012
 
 
 
 
The exact information which I was searching got here. Thanks for sharing here herbs

04/23/2012
 
 
 
 
They are frequently used by mathematicians to illustrate commonalities in different number sets. Creative writers use Venn diagrams to track character similarities in their books. Biologists use Venn diagrams to illustrate commonalities among genotypes. Thanks a lot.
Regards,
thesis statement builder

04/29/2012
 
 
A good example of content presentation. A piece of information from you every now and then is really great. Everything was so well coordinated and looked so aesthetically pleasing to the eye.
www.wheyproteinspowders.net

05/03/2012
 
 
This is just the information I am finding everywhere.Me and my friend were arguing about an issue similar to this! Now I know that I was right.Thanks for the information you post.
www.jetztreduziert.de

05/04/2012
 
 
これは私があなたの記事を読んで、あなたは、この共有のために特定のトピックのおかげに関する情報をユーザーが多くを与える記事を投稿していることに感心していますが初めてです。 Meizitang Strong

05/08/2012
 
 
The open software specifications and the possibility of software licensing, new opportunities arose for software tools that then became the de facto standard, such as DOS for operating systems, but also various proprietary word processing and spreadsheet programs. In a similar growth pattern, proprietary development methods became standard Software development methodology. Thanks.
Regards,
Local SEO Services

05/09/2012
 
 
This is a very informative introduction. I hope you will keep us update about environmental conversation. Thank you so much in Advance. pemutih kulit

05/11/2012
 
 
Great blog. All posts have something to learn. Your work is very good, i appreciate you and hopping for some more informative posts keep writing, Good luck…!
flower shop in new york

05/14/2012
 
 
This posting is marvelous and what a fantastic research that you have done. It has helped me a lot. thank you very much. Feel free to visit my buy portfolio lighting site. jasa seo

05/15/2012
 
 
Coach Outlet is an American leather goods company famous for its ladies handbags and purses. Coach Factory Brand may be creating Coach Bags styles which are absolutely multicolored and fun. Here, we talk about Coach Outlet Online comes in different colors and sizes, which means that you can go in for Coach Outlet Online one that suits you the most. Made up of Coach Factory Outlet various rare materials of Coach Tote Bags, Our Coach Outlet has a variety of collections of Cheap Coach Shoulder Bags. Coach Factory Outlet has polished silver-tone framing on top, which then adds more elegance to its totality. Coach Outlet offer purses are cheap and fashion. When you own a coach bag, it automatically creates a mark of status for your unique style while highlighting an unique way in you. Coach Luggage are the highest quality bags in elegant classical styles. You can find Coach Outlet the special luxury and fashion design from the Cheap Coach Purses. In addition, you can even find some of the Coach bags at Coach Outlet Online be named after some famous models. from http://www.atcoachoutletsonline.com/ Moreover, the exquisite workmanship makes Coach Scarf the darling of fashionable ladies. Don't hesitate! Order it.

05/17/2012
 
 
Add an answer*
 
Your name
Email
 
Company: 5minmedia
Location: Israel
object oriented c# vb.net java develper

add a question

arrow_blue


Now hiring!
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------
---------------------------