This PR adds an optional parameter to the store.cache.clear method to partially clear the cache by action name (regardless of the payload).
In opposite, the store.cache.delete method deletes one specific key (exact action name and payload).
If the an action name is specified, the number of cleared keys is returned.
Otherwise, the boolean return type of the clear function is enforced (as Map.clear is void type).
This PR adds an optional parameter to the
store.cache.clear
method to partially clear the cache by action name (regardless of the payload).In opposite, the
store.cache.delete
method deletes one specific key (exact action name and payload).If the an action name is specified, the
number
of cleared keys is returned. Otherwise, theboolean
return type of the clear function is enforced (asMap.clear
isvoid
type).