Skip to content

Commit

Permalink
Add some just recipes for the Redis cache service (#3538)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvkb authored Dec 18, 2023
1 parent 94e5a3f commit 2b10598
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docker/cache/justfile
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b10598

Please sign in to comment.