Evicting cache based on a particular element value being modified [message #1238706] |
Sun, 02 February 2014 05:24 |
Anil Bhatia Messages: 23 Registered: February 2011 |
Junior Member |
|
|
I also noticed behavior similar to what is mentioned here http://www.eclipse.org/forums/index.php/mv/msg/639125/1233703/#msg_1233703
In my scenario, I have a higher level model element (close to the root, and this element is populated only once by the user, it does not occur again in the model).
Based upon the populated value, I have to do some expensive computation in scope provider, to customize the scope for some lower level elements.
I want to put the result of computation into cache, and redo the computation only when user comes back to this element, and changes its value.
Isn't there a way to tie eviction of a cache entry with a particular model element, saying - do not evict this cache entry, unless this model element value is modified, irrespective of whether the call is from inferrer, validator, or label provider...?
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03798 seconds