◆ lookup()
std::optional< Attrs > nix::fetchers::CacheImpl::lookup |
( |
const Key & | key | ) |
|
|
inlineoverridevirtual |
◆ lookupExpired()
std::optional< Result > nix::fetchers::CacheImpl::lookupExpired |
( |
const Key & | key | ) |
|
|
inlineoverridevirtual |
Look up a key. Return a bool denoting whether its TTL has exceeded settings.tarballTTL
.
Implements nix::fetchers::Cache.
◆ lookupStorePath()
Look up a store path in the cache. The returned store path will be valid, but it may be expired.
Implements nix::fetchers::Cache.
◆ lookupStorePathWithTTL()
Look up a store path in the cache. Return nothing if its TTL has exceeded settings.tarballTTL
.
Implements nix::fetchers::Cache.
◆ lookupWithTTL()
std::optional< Attrs > nix::fetchers::CacheImpl::lookupWithTTL |
( |
const Key & | key | ) |
|
|
inlineoverridevirtual |
Look up a key. Return nothing if its TTL has exceeded settings.tarballTTL
.
Implements nix::fetchers::Cache.
◆ upsert() [1/2]
void nix::fetchers::CacheImpl::upsert |
( |
const Key & | key, |
|
|
const Attrs & | value ) |
|
inlineoverridevirtual |
◆ upsert() [2/2]
Insert a cache entry that has a store path associated with it. Such cache entries are always considered stale if the associated store path is invalid.
Implements nix::fetchers::Cache.
The documentation for this struct was generated from the following file:
- /home/buildozer/aports/community/nix/src/nix-2.26.3/src/libfetchers/cache.cc