diff options
-rw-r--r-- | buildstream/_artifactcache.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/buildstream/_artifactcache.py b/buildstream/_artifactcache.py index 81b0e70a6..7da2d959c 100644 --- a/buildstream/_artifactcache.py +++ b/buildstream/_artifactcache.py @@ -424,6 +424,13 @@ class ArtifactCache(): def remove(self, ref, *, defer_prune=False): return self.cas.remove(ref, defer_prune=defer_prune) + # prune(): + # + # Prune the artifact cache of unreachable refs + # + def prune(self): + return self.cas.prune() + # get_artifact_directory(): # # Get virtual directory for cached artifact of the specified Element. |