We are planning to implement cache management for a webservice. These are the two options we have in list for Caching.
- NCache
- AppFabric
Now we are looking for a way to reset the data in cache and this is what we got so far: We are going to store Accounts and Categories as of now to Cache. This values will be changing from different applications but in same table in same database.
- Have a lookup table for each type of data/item(Account,Category) we are going to store in cache.
- Whenever there is a change for the values of mentioned type, add a entry to one table(dbo.ResetCache).
- Have a windows service checking this table and reset the Cache if there is an entry.
Let me know if you need more clarity on any points and I would like to get your suggestion for this implementation.