Olav:
The HttpCache shares the memory of the worker process. By default that's
60% of the total available memory.
It can be changed by editing:
C:\windows\Micr osoft.NET\Frame work\v1.1.4322\ CONFIG\machine. config
Look for the <processModel section which allows you to control the max
memory consumption (in Windows 2003 you have more control from IIS).
Anyways, you can't allocate specifically for HttpCache,only for the entire
worker process.
If you don't specify a absolute or sliding expiration it'll use the
NoAbsoluteExpir ation and NoSlidingExpira tion which is the same as doing
DateTime.MaxVal ue...in other words it'll stay in the cache as long as it
isn't removed by ASP.Net because it needs to free up memory.
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"Olav Tollefsen" <x@y.com> wrote in message
news:uZ******** ******@TK2MSFTN GP14.phx.gbl...
I use HttpContext.Cur rent.Cache.Inse rt to add some items to the cache.
1) How can I configure how much memory that is allocated to the cache?
2) What are the defaults?
3) If I don't specifiy any expiration when calling Insert, how long will
cached elements live?
Olav