AllDotPy / AllDotPy/Ryx

feat: implement RedisCache backend for QueryResult caching

Open
#51 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cache enhancement ryx-python
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:

  1. Add redis as an optional dependency.
  2. Implement get, set, delete, delete_many, clear, and keys in ryx/cache.py.
  3. Ensure that values are serialized/deserialized (e.g., using json or pickle) since Redis stores strings/bytes.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.