https://github.com/nussjustin/resp3
Fast Redis protocol parser package for Go.
https://github.com/nussjustin/resp3
redis redis-client redis-clients resp3 resp3-client
Last synced: 5 months ago
JSON representation
Fast Redis protocol parser package for Go.
- Host: GitHub
- URL: https://github.com/nussjustin/resp3
- Owner: nussjustin
- License: mit
- Created: 2020-04-25T19:36:37.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-06-01T12:27:56.000Z (about 1 year ago)
- Last Synced: 2025-06-01T21:27:08.500Z (about 1 year ago)
- Topics: redis, redis-client, redis-clients, resp3, resp3-client
- Language: Go
- Homepage:
- Size: 161 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# resp3
> Fast RESP 3 protocol reader and writer for Go.
[](https://godoc.org/github.com/nussjustin/resp3)
[](https://github.com/nussjustin/resp3/actions?query=workflow%3ALint)
[](https://github.com/nussjustin/resp3/actions?query=workflow%3ATest)
[](https://goreportcard.com/report/github.com/nussjustin/resp3)
This is a small package that provides fast reader and writer types for version 3 of the
[REdis Serialization Protocol](https://redis.io/topics/protocol) (short RESP).
## Installation
```sh
go get -u github.com/nussjustin/resp3
```
## Testing
To run all unit tests, just call `go test`:
```sh
go test
```
If you want to run integration tests you need to pass the `integration` tag to `go test`:
```sh
go test -tags integration
```
By default integration tests will try to connect to a Redis instance on `127.0.0.1:6379`.
If your instance has a non-default config, you can use the `REDIS_HOST` environment variable, to override the address:
```sh
REDIS_HOST=127.0.0.1:6380 go test -tags integration # different port
REDIS_HOST=192.168.0.1:6380 go test -tags integration # different host
REDIS_HOST=/tmp/redis.sock go test -tags integration # unix socket
```
Note: If you want to test using a unix socket, make sure that the path to the socket starts with a slash,
for example `/tmp/redis.sock`.
Debug logging for integration tests can be enabled by passing the `-debug` flag to `go test`.
## Meta
Justin Nuß – [@nussjustin](https://twitter.com/nussjustin)
Distributed under the MIT license. See ``LICENSE`` for more information.
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b feature/fooBar`)
3. Commit your changes (`git commit -am 'Add some fooBar'`)
4. Push to the branch (`git push origin feature/fooBar`)
5. Create a new Pull Request