Skip to content

phase 15b: add Redis caching to query endpoint - #13

Merged
DevDoshi19 merged 1 commit into
mainfrom
phase-15/redis
Aug 13, 2026
Merged

phase 15b: add Redis caching to query endpoint#13
DevDoshi19 merged 1 commit into
mainfrom
phase-15/redis

Conversation

@DevDoshi19

Copy link
Copy Markdown
Owner
  • docker-compose.yml: added Redis service on host port 6380
  • config.py: added redis_url setting
  • requirements.txt: added redis
  • query.py: cache check before pipeline, cache write after
  • cache key: md5(question.lower().strip())
  • TTL: 24 hours
  • Redis failures are non-fatal, pipeline runs normally on error
  • QueryResponse now includes cached: bool field

- docker-compose.yml: added Redis service on host port 6380
- config.py: added redis_url setting
- requirements.txt: added redis
- query.py: cache check before pipeline, cache write after
- cache key: md5(question.lower().strip())
- TTL: 24 hours
- Redis failures are non-fatal, pipeline runs normally on error
- QueryResponse now includes cached: bool field

@DevDoshi19 DevDoshi19 left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added Redis for caching

@DevDoshi19
DevDoshi19 merged commit 9434b9f into main Aug 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant