From 377233ecae747ee0b081dbe5b6c28cd01828fa32 Mon Sep 17 00:00:00 2001 From: Min Zhang Date: Mon, 15 Oct 2018 11:31:58 -0700 Subject: [PATCH] fix: add catbox-disk --- config/custom-environment-variables.yaml | 6 ++++++ config/default.yaml | 6 ++++++ package.json | 1 + 3 files changed, 13 insertions(+) diff --git a/config/custom-environment-variables.yaml b/config/custom-environment-variables.yaml index f27a1f0..2ba8959 100644 --- a/config/custom-environment-variables.yaml +++ b/config/custom-environment-variables.yaml @@ -38,6 +38,12 @@ commands: strategy: plugin: STRATEGY + disk: + # Reference for the following options: https://github.com/mirusresearch/catbox-disk + # existing dir to store the cache + cachePath: DISK_CACHE_PATH + # number of milliseconds between each cache cleanup for disk space recovery. Set to 0 to deactivate entirely. + cleanEvery: DISK_CLEAN_EVERY memory: # Upper limit on the number of bytes that can be stored in the cache maxByteSize: MEMORY_MAX_BYTES diff --git a/config/default.yaml b/config/default.yaml index 481ca73..c2633d1 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -48,6 +48,12 @@ commands: strategy: plugin: memory + disk: + # Reference for the following options: https://github.com/mirusresearch/catbox-disk + # existing dir to store the cache + cachePath: /tmp/screwdriver + # number of milliseconds between each cache cleanup for disk space recovery, Set to 0 to deactivate entirely. + cleanEvery: 0 memory: # Upper limit on the number of bytes that can be stored in the cache maxByteSize: 1073741824 # 1GB diff --git a/package.json b/package.json index 1a07fe7..a97b082 100644 --- a/package.json +++ b/package.json @@ -59,6 +59,7 @@ "aws-sdk": "^2.323.0", "boom": "^7.2.0", "catbox": "^10.0.2", + "catbox-disk": "^3.0.0", "catbox-memory": "^3.1.2", "catbox-s3": "^4.0.0", "config": "^1.30.0",