darcs-2.1.99.0: a distributed, interactive, smart revision control systemSource codeContentsIndex
Darcs.Repository.Cache
Synopsis
cacheHash :: ByteString -> String
okayHash :: String -> Bool
takeHash :: ByteString -> Maybe (String, ByteString)
newtype Cache = Ca [CacheLoc]
data CacheType
= Repo
| Directory
data CacheLoc = Cache !CacheType !WritableOrNot !String
data WritableOrNot
= Writable
| NotWritable
data HashedDir
= HashedPristineDir
| HashedPatchesDir
| HashedInventoriesDir
hashedDir :: HashedDir -> String
unionCaches :: Cache -> Cache -> Cache
cleanCaches :: Cache -> HashedDir -> IO ()
cleanCachesWithHint :: Cache -> HashedDir -> [String] -> IO ()
fetchFileUsingCache :: Cache -> HashedDir -> String -> IO (String, ByteString)
speculateFileUsingCache :: Cache -> HashedDir -> String -> IO ()
writeFileUsingCache :: Cache -> Compression -> HashedDir -> ByteString -> IO String
findFileMtimeUsingCache :: Cache -> HashedDir -> String -> IO EpochTime
setFileMtimeUsingCache :: Cache -> HashedDir -> String -> EpochTime -> IO ()
peekInCache :: Cache -> HashedDir -> String -> IO Bool
repo2cache :: String -> Cache
Documentation
cacheHash :: ByteString -> StringSource
okayHash :: String -> BoolSource
takeHash :: ByteString -> Maybe (String, ByteString)Source
newtype Cache Source
Constructors
Ca [CacheLoc]
show/hide Instances
data CacheType Source
Constructors
Repo
Directory
show/hide Instances
data CacheLoc Source
Constructors
Cache !CacheType !WritableOrNot !String
show/hide Instances
data WritableOrNot Source
Constructors
Writable
NotWritable
show/hide Instances
data HashedDir Source
Constructors
HashedPristineDir
HashedPatchesDir
HashedInventoriesDir
hashedDir :: HashedDir -> StringSource
unionCaches :: Cache -> Cache -> CacheSource
cleanCaches :: Cache -> HashedDir -> IO ()Source
cleanCachesWithHint :: Cache -> HashedDir -> [String] -> IO ()Source
fetchFileUsingCache :: Cache -> HashedDir -> String -> IO (String, ByteString)Source
speculateFileUsingCache :: Cache -> HashedDir -> String -> IO ()Source
Note that the file is likely to be useful soon: pipelined downloads will add it to the (low-priority) queue, for the rest it is a noop.
writeFileUsingCache :: Cache -> Compression -> HashedDir -> ByteString -> IO StringSource
findFileMtimeUsingCache :: Cache -> HashedDir -> String -> IO EpochTimeSource
setFileMtimeUsingCache :: Cache -> HashedDir -> String -> EpochTime -> IO ()Source
peekInCache :: Cache -> HashedDir -> String -> IO BoolSource
repo2cache :: String -> CacheSource
Produced by Haddock version 2.4.2