about summary refs log tree commit diff
path: root/tools/nixery/server/builder/cache.go
AgeCommit message (Collapse)AuthorFilesLines
2019-10-03 feat(server): Add cache for layer builds in GCS & local cacheVincent Ambo1-0/+86
This cache is going to be used for looking up whether a layer build has taken place already (based on a hash of the layer contents). See the caching section in the updated documentation for details. Relates to #50.
2019-09-10 refactor(builder): Calculate image cache key only onceVincent Ambo1-15/+4
2019-09-10 feat(server): Cache built manifests to the GCS bucketVincent Ambo1-19/+92
Caches manifests under `manifests/$cacheKey` in the GCS bucket and introduces two-tiered retrieval of manifests from the caches (local first, bucket second). There is some cleanup to be done in this code, but the initial version works.
2019-09-10 refactor(server): Use package source specific cache keysVincent Ambo1-30/+19
Use the PackageSource.CacheKey function introduced in the previous commit to determine the key at which a manifest should be cached in the local cache. Due to this change, manifests for moving target sources are no longer cached and the recency threshold logic has been removed.
2019-08-14 feat(builder): Implement build cache for manifests & layersVincent Ambo1-0/+95
Implements a cache that keeps track of: a) Manifests that have already been built (for up to 6 hours) b) Layers that have already been seen (and uploaded to GCS) This significantly speeds up response times for images that are full or partial matches with previous images served by an instance.