The increment and decrement commands in the local cache are exactly the
same, so their logic is being refactored.
Merge pull request #10255 from wangjohn/increment_or_decrement_refactoring_in_local_cache

Refactoring increment and decrement in local cache