An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# kresp

[![Unit tests](https://github.com/keddad/kresp/actions/workflows/go.yml/badge.svg)](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)