Skip to content

Commit

Permalink
disable redis cache by default in local env (#430)
Browse files Browse the repository at this point in the history
* Disable Redis cache by default in local env

* Update readme
  • Loading branch information
sabahirfan committed Jul 4, 2024
1 parent 291db44 commit cf33758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ Redis has been configured as the default caching provider. When running docker-c
If starting the opal-fines-service from Intellij or the command line you have the following options:
Follow instructions under 'Running the application locally'

In local env by default opal-fines-service uses simple cache instead of Redis cache. This can be enabled by setting this env variable:
```bash
OPAL_REDIS_ENABLED=true
```

Alternatively the opal-fines-service can be run using a simple in-memory cache by starting the application with the profile in-memory-caching.

To view the cache - when running against local Redis - Intellij has a free plugin called Redis Helper.
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
- OPAL_FINES_DB_HOST=opal-fines-db
- OPAL_LEGACY_GATEWAY_URL=http://host.docker.internal:4553/opal
- TESTING_SUPPORT_ENDPOINTS_ENABLED=true
- OPAL_REDIS_ENABLED=true
- OPAL_REDIS_ENABLED=false

ports:
- "4550:4550"
Expand Down

0 comments on commit cf33758

Please sign in to comment.