I have this generic list that is being cached in memory. How can I manually during testing release that object from the cache? I cleared cache on the browser but still when I refresh I get the same set of products becuase it's checking my cached object in my database retrieval method.
Try Cache.Remove() method to remove an object from ASP.NET cache :
Cache.Remove("CacheKey");
Because the cached items are saved in server's memory, you can't clear application cache by clearing browser cache.
You are confusing the browser's cache (on the client machine) with server-side caching.
Your database retrieval method is running on the server, which has nothing to do with your browser cache (which is why clearing your browser cache won't do anything).
Your question isn't too clear, but I'm assuming that you're using the ASP.Net Cache object for your caching.
You'll need to add some code to your database retrieval method to refresh the item in the ASP.net cache. It would help if you could post the code that you have, but basically it would look like:
var data = DatabaseFetchStuff....
Cache["databaseInfoKey"] = data;
coffeeaddict you need to implement cache expiration and removal in order for your app to use updated data. If you're using your own caching implementation make sure you invalidate that cached data every time you update the persistent one, so the next time you request it it'll go up full path and cache it in-memory again.