|
|
| NarInfoDiskCacheImpl (Path dbPath=getCacheDir()+"/nix/binary-cache-v6.sqlite") |
|
Cache & | getCache (State &state, const std::string &uri) |
| int | createCache (const std::string &uri, const Path &storeDir, bool wantMassQuery, int priority) 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 |
|
|
const int | purgeInterval = 24 * 3600 |
|
const int | cacheInfoTtl = 7 * 24 * 3600 |
|
Sync< State > | _state |
|
| enum | Outcome { oValid
, oInvalid
, oUnknown
} |
◆ createCache()
| int nix::NarInfoDiskCacheImpl::createCache |
( |
const std::string & | uri, |
|
|
const Path & | storeDir, |
|
|
bool | wantMassQuery, |
|
|
int | priority ) |
|
inlineoverridevirtual |
◆ lookupNarInfo()
| std::pair< Outcome, std::shared_ptr< NarInfo > > nix::NarInfoDiskCacheImpl::lookupNarInfo |
( |
const std::string & | uri, |
|
|
const std::string & | hashPart ) |
|
inlineoverridevirtual |
◆ lookupRealisation()
| std::pair< Outcome, std::shared_ptr< Realisation > > nix::NarInfoDiskCacheImpl::lookupRealisation |
( |
const std::string & | uri, |
|
|
const DrvOutput & | id ) |
|
inlineoverridevirtual |
◆ upsertAbsentRealisation()
| virtual void nix::NarInfoDiskCacheImpl::upsertAbsentRealisation |
( |
const std::string & | uri, |
|
|
const DrvOutput & | id ) |
|
inlineoverridevirtual |
◆ upsertNarInfo()
| void nix::NarInfoDiskCacheImpl::upsertNarInfo |
( |
const std::string & | uri, |
|
|
const std::string & | hashPart, |
|
|
std::shared_ptr< const ValidPathInfo > | info ) |
|
inlineoverridevirtual |
◆ upsertRealisation()
| void nix::NarInfoDiskCacheImpl::upsertRealisation |
( |
const std::string & | uri, |
|
|
const Realisation & | realisation ) |
|
inlineoverridevirtual |
◆ upToDateCacheExists()
| std::optional< CacheInfo > nix::NarInfoDiskCacheImpl::upToDateCacheExists |
( |
const std::string & | uri | ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file:
- lix/libstore/nar-info-disk-cache.cc