From a7c640048a1c37695319cb8d9b1ce5362900b3ad Mon Sep 17 00:00:00 2001 From: materus Date: Wed, 20 Mar 2024 13:01:59 +0100 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f9518d..640a480 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Options: -L, --list-rates List exchange rate for currency -h, --help Print help ``` -Cache and api key is stored by default in `/currencyCache.db`. This location and filename can be overriden by setting up `CURRENCY_CACHE` env variable. +Cache and api key is stored by default in `/currencyCache.db` or `/currencyCache.db` if `XDG_CACHE_HOME` is not set. This location and filename can be overriden by setting up `CURRENCY_CACHE` env variable. ## Build Needs rust and cargo, build tested on rust v1.76.0\ @@ -42,4 +42,6 @@ To run with docker use: docker run -it --rm -v /tmp:/tmp:rw materus/currency-exchange:latest ``` +Dockerfile sets up `CURRENCY_CACHE` to `/tmp/docker_currency_cache.db`, to keep cache u should mount this file or tmp directory for example with `-v /tmp:/tmp:rw` in docker run cmdline. +