We help IT Professionals succeed at work.
Get Started

custom change monitors in net 4.0 using system.runtime.caching

ElPollo123
ElPollo123 asked
on
2,210 Views
Last Modified: 2012-05-11
hello experts.
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.

Thanks
EP
Comment
Watch Question
CERTIFIED EXPERT
Most Valuable Expert 2012
Top Expert 2008
Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE