I am currently using system.runtime.caching to cache some lists in my program. I know that this also supports the ability to create my own custom policy or monitor. I need to create my own custom monitor. basically I want to invalidate the cache if an execution number has changed. For instance the program starts and will have an execution number of 1, when I load the list and cache it i want to increment the execution number to 2, if that execution number changes to 3 i want to invalidate the cache and reload it from the database.
Does anyone know how to accomplish this? Perhaps a start would be helpful, I don't even know how to create a custom monitor yet.