From cbcc8d5635b8f8065c32a5f297a2d8f55fe2b4a7 Mon Sep 17 00:00:00 2001 From: findingsov <113792100+findingsov@users.noreply.github.com> Date: Wed, 26 Feb 2025 10:25:17 -0500 Subject: [PATCH] Update README.md - Add Redis info? Add some Redis info (maybe not all this is needed?) --- README.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/README.md b/README.md index 3934c63ff..1b4e60280 100644 --- a/README.md +++ b/README.md @@ -194,6 +194,30 @@ poetry run mint For testing, you can use Nutshell without a Lightning backend by setting `MINT_BACKEND_BOLT11_SAT=FakeWallet` in the `.env` file. +## Redis +To install and run Redis on default port 6379: +```bash +sudo apt-get install redis-server +sudo service redis-server start +``` +To confirm it’s running: +```bash +sudo systemctl status redis-server +``` +To enable Redis to start on boot: +```bash +sudo systemctl enable redis-server +``` +Edit the .env file and uncomment the Redis lines: +``` +# NUT-19 Cached responses +# Enable these settings to cache responses in Redis +# +MINT_REDIS_CACHE_ENABLED=TRUE +MINT_REDIS_CACHE_URL="redis://localhost:6379" +``` + + # Running tests To run the tests in this repository, first install the dev dependencies with