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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
zUBARIKPosted Nov 21, 2010, 1:16 AM
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.
zUBARIKPosted Nov 20, 2010, 2:37 AM
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.
Suthish NairPosted Nov 19, 2010, 2:53 PM
zUBARIKPosted Nov 19, 2010, 12:12 PM
private static readonly Cache _cache;
string key = "Name"
object obj = "Value"
_cache.Insert(key, obj, null, DateTime.MaxValue, TimeSpan.Zero, CacheItemPriority.AboveNormal, null);
zUBARIKPosted Nov 17, 2010, 8:54 AM
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
Deepak SharmaPosted Nov 17, 2010, 4:31 AM
- 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."