e2core: Redis section in `Directive.yaml` in is not read/used
Only the default in-memory cache is used, even if the redis connection is declared:
identifier: com.suborbital.services
appVersion: v0.1.0
atmoVersion: v0.4.4
connections:
redis:
serverAddress: redis-server:6379
handlers:
- type: request
resource: /create
method: POST
steps:
- fn: create
- type: request
resource: /read/:key
method: GET
steps:
- fn: read
The create function adds a key/value to the cache, and the read function reads the value associated with the key. But when I run this:
redis-cli
keys *
I get nothing. The cache methods are ok, but nothing is stored in the Redis database
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (15 by maintainers)
Awesome, thank you for double checking it. I’ll close this one as solved.
For the folks running into the same issue with version 0.4.6: the solution is to update to 0.4.7 (valid at the time). If the issue appears in a version later than that, open a new issue 🙂
@javorszky I did the test with the latest version of the image, and it works perfectly 👍 👏
Sweet, thank you! Safe flight, and talk next week 🙂
I’m at the airport right now, but I will test this weekend (I have an idea for a blog post about Atmo, and if the Redis cx is ok, it will help me a lot)