https://github.com/keddad/kresp
Simple parser for RESP protocol
https://github.com/keddad/kresp
parser redis
Last synced: 10 months ago
JSON representation
Simple parser for RESP protocol
- Host: GitHub
- URL: https://github.com/keddad/kresp
- Owner: keddad
- License: mit
- Created: 2025-08-09T14:32:47.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-08-18T19:52:25.000Z (10 months ago)
- Last Synced: 2025-08-18T21:29:45.645Z (10 months ago)
- Topics: parser, redis
- Language: Go
- Homepage:
- Size: 58.6 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kresp
[](https://github.com/keddad/kresp/actions/workflows/go.yml)
Simple, but fully compliant parser/serializer for [RESP Protocol](redis.io/docs/latest/develop/reference/protocol-spec).
If you want to:
* Build a Redis-compatible client (or server, or some other tool)
* Build any client-server tooling which needs a flexible, text-based protocol
This might be the library for you.
It can work with all RESP types, including all the things that should be Arrays (Sets, Pushes), Nulls (Null Bulk Strings, Null Arrays).
It is decently well-tested, and should be more or less straightforward to use.
Usage examples:
* [Serialization](examples/serialization/main.go)
* [Deserialization](examples/deserialization/main.go)
* [Working with Attributes](examples/attributes/main.go)