I would like to propose adding 2 additional convenience methods to the
IgniteCache API:
-----------
boolean putIf(key, val, IgniteBiPredicate<K, V>)
boolean removeIf(key, val, IgniteBiPredicate<K, V>)
-----------

Currently user must call one of the JCache.invoke(key, EntryProcessor,
args) methods, and then calling explicit put from inside the EntryProcessor
logic. The new APIs will allow a convenient shortcut for this type of
functionality.

Let me know if you agree, or if you feel that we should just have the
JCache.invoke(...) functionality.

D.

Reply via email to