Hi,

i.e. if you want to return a list of cities from an SQL Server and the
list will only change every 10mins. Now, you can put it in the session
object, but then every user will have a own session copy of the data.
Ok, then you can save it in the cache object,... AjaxPro is doing
this, but already the serialized JSON string. So, you will save
writing every time the same code for caching, and reflection is not
needed on every same request. I monitored CPU usage and could reduce
usage, I think it is very interesting for same requests, or?

Regards,
Michael



On 6/2/06, o0JoeCool0o <[EMAIL PROTECTED]> wrote:
>
> Can you give an example of when one would use this?
>
> Is there an advantage to caching the result instead of using say a
> session object to store a value? or why would one want to cache the
> result server side? isnt it easier to use a global variable in the
> client side and store the result client side?
>
> Thanks!
>
>
>
> > adding the AjaxServerCache attribute to the AjaxMethod will save the
> > result for x seconds for the same arguments. This was not working
> > correct in older versions.
> >
>
>
> >
>


-- 
Best regards | Schöne Grüße
Michael

Microsoft MVP - Most Valuable Professional
Microsoft MCAD - Certified Application Developer

http://weblogs.asp.net/mschwarz/
http://www.schwarz-interactive.de/
mailto:[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Ajax.NET Professional" group.

To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]

For more options, visit this group at http://groups.google.com/group/ajaxpro

The latest downloads of Ajax.NET Professional can be found at 
http://www.ajaxpro.info
-~----------~----~----~----~------~----~------~--~---

Reply via email to