From 2b10598213fd76cead31b7d5daea3d814f9b5411 Mon Sep 17 00:00:00 2001 From: Dhruv Bhanushali Date: Mon, 18 Dec 2023 20:00:08 +0400 Subject: [PATCH] Add some `just` recipes for the Redis cache service (#3538) --- docker/cache/justfile | 22 ++++++++++++++++++++++ justfile | 1 + 2 files changed, 23 insertions(+) create mode 100644 docker/cache/justfile diff --git a/docker/cache/justfile b/docker/cache/justfile new file mode 100644 index 00000000000..eb0bcb84625 --- /dev/null +++ b/docker/cache/justfile @@ -0,0 +1,22 @@ +set dotenv-load := false + +COLOR := "\\033[0;32m" +NO_COLOR := "\\033[0m" + +# Show all available recipes +@_default: + printf "\n{{ COLOR }}# Cache (path: \`docker/cache/\`)\n" + printf "==============================={{ NO_COLOR }}\n" + just --list --unsorted + +####### +# CLI # +####### + +# Open the Redis CLI as an interactive REPL +cli *args: + just ../../exec cache redis-cli {{ args }} + +# Delete all data cached in Redis +flushall: + just cli FLUSHALL diff --git a/justfile b/justfile index 826666043bb..e1588152115 100644 --- a/justfile +++ b/justfile @@ -13,6 +13,7 @@ DC_USER := env_var_or_default("DC_USER", "opener") # Show all available recipes, also recurses inside nested justfiles @_default: just --list --unsorted + cd docker/cache && just cd docker/nginx && just cd docker/es && just cd catalog && just