feat: implement RedisCache backend for QueryResult caching
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 13
- Forks
- 5
- Avg merge
- 1h 49m
- Merged PRs (30d)
- 3
Description
The documentation mentions a RedisCache backend, but currently only MemoryCache is implemented in ryx/cache.py.
Goal: Implement the RedisCache class by inheriting from AbstractCache. It should use the redis-py (async) library to store and retrieve cached query results.
Implementation hint:
- Add
redisas an optional dependency. - Implement
get,set,delete,delete_many,clear, andkeysinryx/cache.py. - Ensure that values are serialized/deserialized (e.g., using
jsonorpickle) since Redis stores strings/bytes.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in ryx/cache.py by reading AbstractCache and the existing MemoryCache implementation, then inspect the project’s dependency configuration for optional packages. Implement the RedisCache methods listed in the issue using async redis-py and ensure cached values round-trip through serialization. Done means all cache operations work against Redis without changing the existing MemoryCache behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, redis
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 64/100