![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Classes | |
| struct | State |
Public Member Functions | |
| void | anchor () override |
| CacheImpl (const Settings &_settings) | |
| void | upsert (const Key &key, const Attrs &value) override |
| std::optional< Attrs > | lookup (const Key &key) override |
| std::optional< Attrs > | lookupWithTTL (const Key &key) override |
| std::optional< Result > | lookupExpired (const Key &key) override |
| void | upsert (Key key, Store &store, Attrs value, const StorePath &storePath) override |
| std::optional< ResultWithStorePath > | lookupStorePath (Key key, Store &store) override |
| std::optional< ResultWithStorePath > | lookupStorePathWithTTL (Key key, Store &store) override |
Public Attributes | |
| Sync< State > | _state |
| const Settings & | settings |
Additional Inherited Members | |
| Public Types inherited from nix::fetchers::Cache | |
| using | Domain = std::string_view |
| using | Key = std::pair<Domain, Attrs> |
|
overridevirtual |
Reimplemented from nix::fetchers::Cache.
Look up a key with infinite TTL.
Implements nix::fetchers::Cache.
|
inlineoverridevirtual |
Look up a key. Return a bool denoting whether its TTL has exceeded settings.tarballTTL.
Implements nix::fetchers::Cache.
|
inlineoverridevirtual |
Look up a store path in the cache. The returned store path will be valid, but it may be expired.
Implements nix::fetchers::Cache.
|
inlineoverridevirtual |
Look up a store path in the cache. Return nothing if its TTL has exceeded settings.tarballTTL.
Implements nix::fetchers::Cache.
|
inlineoverridevirtual |
Look up a key. Return nothing if its TTL has exceeded settings.tarballTTL.
Implements nix::fetchers::Cache.
|
inlineoverridevirtual |
Add a key/value pair to the cache.
Implements nix::fetchers::Cache.
|
inlineoverridevirtual |
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.
| const Settings& nix::fetchers::CacheImpl::settings |
This is a back-reference to the Settings that owns us.