summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_artifactcache.py')
-rw-r--r--buildstream/_artifactcache.py7
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.