-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some
just
recipes for the Redis cache service (#3538)
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters