Edit: Wops, wrong category... could someone please move this post to Developmet section?
Hej DW guys,
I have a question here,
Let's say I have some data, that must be available withing application. For example Application Variables could store some of it.
For example store a set that must be accessed really quick, and to take some load of the database I was thinking to put this Dictionary
I was trying to use something like this in DW:
Application["CachedValues"] = cachedList; Dictionary<string, double> cachedList = (Dictionary<string, double>)Application["CachedValues"];
But it does not seem to work.
Dynamicweb.Cache Cache = new Dynamicweb.Cache();
This one either :-/
Any reason why? or maybe there are more suggestions how to achieve something like this?
P.S. I am full aware about application variables side-effect - that they can drain the memory on the server, so must be treated with caution.
But this variable I am working with, may not change for 24-48 hours (it must be constantly accessible globally), and if it does, I will change it directly, so it must be alive as long as application is alive. Just 1. It would help performance alot, as I could save additional connection to database and list through 1000 values.
Many thanks in advance! :-)
Regards,
Dmitrij