Skip to content

feat: implement RESP server#2

Open
chu-k wants to merge 3 commits intomainfrom
feat/redis-serialization
Open

feat: implement RESP server#2
chu-k wants to merge 3 commits intomainfrom
feat/redis-serialization

Conversation

@chu-k
Copy link
Owner

@chu-k chu-k commented Feb 4, 2025

Can now:

  • Connect via redis-py and execute GET, i.e.
import redis
r = redis.Redis(host=..., port=...)

# existing key
r.get('foo')
# returns b'bar'

# no key
r.get('key')
# returns null

# unimplemented SET
r.set('key', 'value')
# rasies redis.exceptions.ResponseError: unimplemented command 'SET'

TODO:

  • implement handling of other primitive types, currently all returned as bulk string
  • configuration, docker compose service definition
  • connect to actual cache + redis backing container for end-to-end testing

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