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
and changing a method for returning to_key