Location and layout of the local cache
Modulehackage-security-0.6.3.2Haskell2010
Hackage.Security.Client.Repository.Cache
The files we cache from the repository
Both the Local and the Remote repositories make use of this module.
- 1 type
- 9 values
- Packagehackage-security-0.6.3.2
- Exports10
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCache.hs
Get a cached file (if available)
Get the cached root
Calling getCachedRoot without root info available is a programmer error
and will result in an unchecked exception. See requiresBootstrap.
Get the cached index (if available)
Delete a previously downloaded remote file
Cache a previously downloaded remote file
Lock the cache
This avoids two concurrent processes updating the cache at the same time, provided they both take the lock.
Variant of lockCache which emits LogMessages before and after a possibly blocking file-locking system call