From 0907f3fdf7664cf0d8ee40324315a472a9a540c9 Mon Sep 17 00:00:00 2001 From: kshvakov Date: Mon, 2 Sep 2024 21:03:43 +0000 Subject: [PATCH] update opcodes --- protocol/opcode.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/protocol/opcode.go b/protocol/opcode.go index cc4c597..1ab0da3 100644 --- a/protocol/opcode.go +++ b/protocol/opcode.go @@ -9,7 +9,6 @@ const ( Get Opcode = 0x00 Set = 0x01 Add = 0x02 - Replace = 0x03 Delete = 0x04 Increment = 0x05 Decrement = 0x06 @@ -24,8 +23,20 @@ func (c Opcode) String() string { return "get" case Set: return "set" + case Add: + return "add" + case Noop: + return "noop" + case GetKQ: + return "get_kq" + case Delete: + return "delete" case Version: return "version" + case Increment: + return "increment" + case Decrement: + return "decrement" } return fmt.Sprintf("undefined Opcode: %d", c) }