| ||||||||
| ||||||||
Synopsis | ||||||||
Documentation | ||||||||
| ||||||||
cacheHash computes the cache hash (i.e. filename) of a packed string. | ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
unionRemoteCaches merges caches. It tries to do better than just blindly copying remote cache entries:
This approach should save us from bogus cache entries. One case it does not work very well is when you fetch from partial repository over network. Hopefully this is not a common case. | ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
speculateFileUsingCache cache subdirectory name takes note that the file name is likely to be useful soon: pipelined downloads will add it to the (low-priority) queue, for the rest it is a noop. | ||||||||
| ||||||||
Note that the files are likely to be useful soon: pipelined downloads will add them to the (low-priority) queue, for the rest it is a noop. | ||||||||
| ||||||||
writeFileUsingCache cache compression subdir contents write the string contents to the directory subdir, except if it is already in the cache, in which case it is a noop. Warning (?) this means that in case of a hash collision, writing using writeFileUsingCache is a noop. The returned value is the filename that was given to the string. | ||||||||
| ||||||||
peekInCache cache subdir hash tells whether cache and contains an object with hash hash in a writable position. Florent: why do we want it to be in a writable position? | ||||||||
| ||||||||
| ||||||||
| ||||||||
| ||||||||
hashedFilePath cachelocation subdir hash returns the physical filename of hash hash in the subdir section of cachelocation. | ||||||||
| ||||||||
| ||||||||
Compares two caches, a remote cache is greater than a local one. The order of the comparison is given by: local < http < ssh | ||||||||
Produced by Haddock version 2.6.1 |