I have created a public List that is runs and is accessed from my a Web Application.
private static List<x> _x;
static readonly object lockObjx = new object();
public static void XCache()
{
if (_x != null)
return;
lock (lockObjx)
{
_x = GetFromDatabase();
}
}
This all runs happily under the default app pool. I now need to add a web service that can update the this cache. Will I be able to do this running on the default app pool? If not is there a way I can do this without installing something like MEMCache. The Service and and Wepp run on the same server.