Skip to content

Commit cbcc8d5

Browse files
authored
Update README.md - Add Redis info?
Add some Redis info (maybe not all this is needed?)
1 parent 0c40bbb commit cbcc8d5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,30 @@ poetry run mint
194194

195195
For testing, you can use Nutshell without a Lightning backend by setting `MINT_BACKEND_BOLT11_SAT=FakeWallet` in the `.env` file.
196196

197+
## Redis
198+
To install and run Redis on default port 6379:
199+
```bash
200+
sudo apt-get install redis-server
201+
sudo service redis-server start
202+
```
203+
To confirm it’s running:
204+
```bash
205+
sudo systemctl status redis-server
206+
```
207+
To enable Redis to start on boot:
208+
```bash
209+
sudo systemctl enable redis-server
210+
```
211+
Edit the .env file and uncomment the Redis lines:
212+
```
213+
# NUT-19 Cached responses
214+
# Enable these settings to cache responses in Redis
215+
#
216+
MINT_REDIS_CACHE_ENABLED=TRUE
217+
MINT_REDIS_CACHE_URL="redis://localhost:6379"
218+
```
219+
220+
197221

198222
# Running tests
199223
To run the tests in this repository, first install the dev dependencies with

0 commit comments

Comments
 (0)