unison-parser-typechecker-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Codebase.SqliteCodebase.Branch.Cache

Synopsis

Documentation

data BranchCache m Source #

A cache of Branch by CausalHashes.

Constructors

BranchCache 

newBranchCache :: forall m. MonadIO m => m (BranchCache Transaction) Source #

Creates a BranchCache which uses weak references to only keep branches in the cache for as long as they're reachable by something else in the app.

This means you don't need to worry about a Branch not being GC'd because it's in the cache.