Moving the common code of increment and decrement of cache file store into seprate function

Removing the double checking for the value of id

simplifying code for checking conditional code for key

Removing the default values for parameters

removing reduntant code and asiigning value of id in local variable

removing wrongly added line break[ci ckip]

reverting code
Merge pull request #13268 from aayushkhandelwal11/master

Moving the common code of increment and decrement of cache file store in...
Copy-edit the parent commit