CacheManager in Enterprise Library doesn't save cache in console application

  • Thread starter Thread starter Albert
  • Start date Start date
A

Albert

VS05, C#, console application, + MS Enterprise Library
===================

Hi, I am trying to cache an XmlSchemaSet. The trouble is I want to do this in
a Non HttpContext - in a console application.

I've installed the Enterprise Library, added the relevant references, set the
configuration by the book (tested both with inMemory and DB settings).
The caching doesn't seem to survive over the end of the process.

I mean, I add an item to the cache, and i see it fine. But if i run the
application again, the cache is empty.

Help appreciated,
Thanks, Albert

--
Albert Benatov
Skype: abentov
http://albertbenatov.com

Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/Forums.aspx/asp-net/200612/1
 
as caching works by storing objects in a static variable in the
appdomain. when your console app exits, the cache is lost.

-- bruce (sqlwork.com)
 
Back
Top