Nix 2.29.1
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::NarInfoDiskCacheImpl Class Reference
Inheritance diagram for nix::NarInfoDiskCacheImpl:

Classes

struct  Cache
struct  State

Public Member Functions

 NarInfoDiskCacheImpl (Path dbPath=getCacheDir()+"/binary-cache-v6.sqlite")
CachegetCache (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

Public Attributes

const int purgeInterval = 24 * 3600
const int cacheInfoTtl = 7 * 24 * 3600
Sync< State_state

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/nix-2.29.1-build/nix-2.29.1/src/libstore/nar-info-disk-cache.cc