Moving the common code of increment and decrement of cache file store in...

Moving the common code of increment and decrement to a common method in cache file store