directory

fun directory(directory: Path)

Set the directory where the cache stores its data.

IMPORTANT: It is an error to have two DiskCache instances active in the same directory at the same time as this can corrupt the disk cache.