![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | Cache |
| struct | State |
Public Member Functions | |
| NarInfoDiskCacheImpl (const Settings &settings, SQLiteSettings sqliteSettings, std::filesystem::path dbPath=getCacheDir()/"binary-cache-v8.sqlite") | |
| Cache & | getCache (State &state, const std::string &uri) |
| int | createCache (const std::string &uri, const std::string &storeDir, const CacheInfo &info) override |
| std::optional< CacheInfo > | upToDateCacheExists (const std::string &uri) override |
| std::pair< Outcome, std::shared_ptr< NarInfo > > | lookupNarInfo (const std::string &uri, const std::string &hashPart) override |
| std::pair< Outcome, std::shared_ptr< Realisation > > | lookupRealisation (const std::string &uri, const DrvOutput &id) override |
| void | upsertNarInfo (const std::string &uri, const std::string &hashPart, std::shared_ptr< const ValidPathInfo > info) override |
| void | upsertRealisation (const std::string &uri, const Realisation &realisation) override |
| virtual void | upsertAbsentRealisation (const std::string &uri, const DrvOutput &id) override |
| Public Member Functions inherited from nix::NarInfoDiskCache | |
| NarInfoDiskCache (const Settings &settings) | |
Public Attributes | |
| const int | purgeInterval = 24 * 3600 |
| Sync< State > | _state |
| Public Attributes inherited from nix::NarInfoDiskCache | |
| const Settings & | settings |
Additional Inherited Members | |
| Public Types inherited from nix::NarInfoDiskCache | |
| enum | Outcome { oValid , oInvalid , oUnknown } |
| using | Settings = NarInfoDiskCacheSettings |
| Static Public Member Functions inherited from nix::NarInfoDiskCache | |
| static ref< NarInfoDiskCache > | get (const Settings &settings, SQLiteSettings) |
| static ref< NarInfoDiskCache > | getTest (const Settings &settings, SQLiteSettings, std::filesystem::path dbPath) |
|
inlineoverridevirtual |
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.
Implements nix::NarInfoDiskCache.
|
inlineoverridevirtual |
Implements nix::NarInfoDiskCache.
|
inlineoverridevirtual |
Implements nix::NarInfoDiskCache.
|
inlineoverridevirtual |
Implements nix::NarInfoDiskCache.
|
inlineoverridevirtual |
Implements nix::NarInfoDiskCache.
|
inlineoverridevirtual |
Implements nix::NarInfoDiskCache.
|
inlineoverridevirtual |
Implements nix::NarInfoDiskCache.