Add `root` as a dep of `createCache`.