Cache directory

How does kopia know which cache directory to use for a certain repository. Is the name of the cache directory stored in the repository?

Caching information is saved in the repository.config file.