Location and layout of the local cache
Modulehackage-security-0.6.4.0Haskell2010
Hackage.Security.Client.Repository.Cache
The files we cache from the repository
Both the Local and the Remote repositories make use of this module.
Synopsis
- data Cache
- value getCached
- value getCachedRoot
- value getCachedIndex
- value clearCache
- value withIndex
- value getIndexIdx
- value cacheRemoteFile
- value lockCache
- value lockCacheWithLogger
- Packagehackage-security-0.6.4.0
- 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