![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | CacheInfo |
Public Types | |
| enum | Outcome { oValid , oInvalid , oUnknown } |
| using | Settings = NarInfoDiskCacheSettings |
Public Member Functions | |
| NarInfoDiskCache (const Settings &settings) | |
| virtual int | createCache (const std::string &uri, const std::string &storeDir, const CacheInfo &info)=0 |
| virtual std::optional< CacheInfo > | upToDateCacheExists (const std::string &uri)=0 |
| virtual std::pair< Outcome, std::shared_ptr< NarInfo > > | lookupNarInfo (const std::string &uri, const std::string &hashPart)=0 |
| virtual void | upsertNarInfo (const std::string &uri, const std::string &hashPart, std::shared_ptr< const ValidPathInfo > info)=0 |
| virtual void | upsertRealisation (const std::string &uri, const Realisation &realisation)=0 |
| virtual void | upsertAbsentRealisation (const std::string &uri, const DrvOutput &id)=0 |
| virtual std::pair< Outcome, std::shared_ptr< Realisation > > | lookupRealisation (const std::string &uri, const DrvOutput &id)=0 |
Static Public Member Functions | |
| static ref< NarInfoDiskCache > | get (const Settings &settings, SQLiteSettings) |
| static ref< NarInfoDiskCache > | getTest (const Settings &settings, SQLiteSettings, std::filesystem::path dbPath) |
Public Attributes | |
| const Settings & | settings |
|
pure virtual |
Create or update the cached nix-cache-info for the binary cache at uri. Note that info.id is ignored. This function returns the id of the cache entry.
Implemented in nix::NarInfoDiskCacheImpl.
|
static |
Return a singleton cache object that can be used concurrently by multiple threads.