Hi,
Please tell me that in which is cache the value were stored, whether on the client computer or on the server
Regards
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Deepak SharmaRank #541 · 4.5K reputationPosted Nov 16, 2010, 11:31 PM EST
- Client computer(Web browser)
- Web server
- Proxy servers
This storage location can be changed using Location attributes in OutputCache directive like :<%@ OutputCache Location="Client" %> (For caching at client side)
<%@ OutputCache Location="Server" %> (For caching at server side)
<%@ OutputCache Location="ServerAndClient" %> (For caching at both client and server side)
Other possible values for Location attributes are Any, None and DownStream.
"If this answer helped you. Check the Do you like this Answer Check Box at the top."
zUBARIK20 reputationPosted Nov 17, 2010, 3:54 AM EST
Thanks for the reply
Can you please tell according the following code where the value is stored
private static readonly Cache _cache;
string key = "Name"
object obj = "Value"
_cache.Insert(key, obj, null, DateTime.MaxValue, TimeSpan.Zero, CacheItemPriority.AboveNormal, null);
Regards
zUBARIK20 reputationPosted Nov 19, 2010, 7:12 AM EST
private static readonly Cache _cache;
string key = "Name"
object obj = "Value"
_cache.Insert(key, obj, null, DateTime.MaxValue, TimeSpan.Zero, CacheItemPriority.AboveNormal, null);
Suthish NairRank #92 · 22.8K reputationPosted Nov 19, 2010, 9:53 AM EST
zUBARIK20 reputationPosted Nov 19, 2010, 9:37 PM EST
X requested a page of Y's personal profile the system get's the information from the database and stores the it server's cache for future use and then same day Z also requested the same page and so system found the information in cache and return it to the user.
But next day X requested the same page and system doesn't found any information in cache
Can you please tell me why the system doesn't found values in cache.
zUBARIK20 reputationPosted Nov 20, 2010, 8:16 PM EST
Cache is an temporary memory situated on server which is used for storing data to save round trip of database. And we clear the values from cache after completing the query.