2

Looking for implementation which:

1) checks for the key if the value is changed.

2) if yes invaludates the key.

3) sets the key with new value from the Data Tier(i.e. Original Source)

wadhwa94
  • 153
  • 1
  • 13
  • Why just not call `AddOrUpdate` ? – MaKCbIMKo May 03 '16 at 17:29
  • Want to use somehting like **CacheEntryChangeMonitor Class** : Provides a base class that represents a ChangeMonitor type that can be implemented in order to monitor changes to cache entries. – wadhwa94 May 03 '16 at 17:47
  • Do you want to update the cache or use CacheEntryChangeMonitor. I guess that these things are pretty different. – MaKCbIMKo May 03 '16 at 18:04
  • My ask is: My cache is implemeted and its working i want to see if any value which is there in the cache has changed in the original source. On the basis of that i want to trigger something. AddorUpdate that you suggested can be implemented but how to knwo if value has changed in the original source.(which i guess cacheEntryMonitor Class does) – wadhwa94 May 05 '16 at 17:35
  • I'm not sure does it work with Redis at all. – MaKCbIMKo May 05 '16 at 17:36
  • What can be the method to see if any value for key has changed in the source? – wadhwa94 May 05 '16 at 17:51
  • https://techblog.betclicgroup.com/2013/12/31/implementing-local-memorycache-invalidation-with-redis/ – wadhwa94 May 05 '16 at 17:55
  • so what's the source? another redis instance? a sql DB? please clarify your question. – thepirat000 May 07 '16 at 16:08
  • source can be a SQL DB or a result coming from Service Call. – wadhwa94 May 07 '16 at 16:37

0 Answers0