Added resp package for encoding and decoding resp messages.

Created encoding functions for the following commands: ping, set, setnx, get, mget, incr, incrby, incrbyfloat.
Created utils packages for shared utility functions.
This commit is contained in:
Kelvin Clement Mwinuka
2023-06-24 05:38:59 +08:00
parent 0b1c76f8b6
commit 40be716513
16 changed files with 1412 additions and 79 deletions

13
vendor/github.com/tidwall/resp/doc.go generated vendored Normal file
View File

@@ -0,0 +1,13 @@
// Copyright 2016 Josh Baker. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
/*
Package resp provides a reader, writer, and server implementation for the RESP protocol. http://redis.io/topics/protocol
RESP is short for "REdis Serialization Protocol".
While the protocol was designed specifically for Redis, it can be used for other client-server software projects.
RESP has the advantages of being human readable and with performance of a binary protocol.
*/
package resp