Option :on_error
for caching annotations to ignore cache exceptions when required
#141
Labels
:on_error
for caching annotations to ignore cache exceptions when required
#141
Since caching annotations handle the cache commands underneath, it is not possible to control the command execution, like doing nothing or ignoring any cache error and letting the function block be executed instead. To address it, the option
:on_error
is added to all caching annotations, and the possible values are::raise
(the default) or:nothing
. If:on_error
is set to:nothing
, any exception during a cache command execution is ignored, and the function block is executed. For example:The text was updated successfully, but these errors were encountered: