From 27a2389e2cbd9706f4bb687d345621d724509ce1 Mon Sep 17 00:00:00 2001 From: mikestefanello Date: Mon, 7 Feb 2022 21:23:09 -0500 Subject: [PATCH] Added make target to connect to the test cache. --- Makefile | 13 +++++++++---- README.md | 3 ++- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 2ef4b48..423d650 100644 --- a/Makefile +++ b/Makefile @@ -1,17 +1,22 @@ # Connect to the primary database .PHONY: db db: - psql postgresql://admin:admin@localhost:5432/app + psql postgresql://admin:admin@localhost:5432/app # Connect to the test database .PHONY: db-test db-test: - psql postgresql://admin:admin@localhost:5432/app_test + psql postgresql://admin:admin@localhost:5432/app_test -# Connect to the cache +# Connect to the primary cache .PHONY: cache cache: - redis-cli + redis-cli + + # Connect to the test cache +.PHONY: cache-test +cache-test: + redis-cli -n 1 # Install Ent code-generation module .PHONY: ent-install diff --git a/README.md b/README.md index 88d4f98..a0567d4 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,8 @@ The following _make_ commands are available to make it easy to connect to the da - `make db`: Connects to the primary database - `make db-test`: Connects to the test database -- `make cache`: Connects to the cache +- `make cache`: Connects to the primary cache +- `make cache-test`: Connects to the test cache ## Service container