From 353fc44419d9b802cbc271bcbcc3a7f3b047f531 Mon Sep 17 00:00:00 2001 From: Ken Hibino Date: Fri, 12 Mar 2021 16:23:08 -0800 Subject: [PATCH] Refactor redis keys and store messages in protobuf Changes: - Task messages are stored under "asynq:{}:t:" key in redis, value is a HASH type and message are stored under "msg" key in the hash. The hash also stores "deadline", "timeout". - Redis LIST and ZSET stores task message IDs - Task messages are serialized using protocol buffer --- internal/asynqtest/asynqtest.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/asynqtest/asynqtest.go b/internal/asynqtest/asynqtest.go index 66831ba..a27a34d 100644 --- a/internal/asynqtest/asynqtest.go +++ b/internal/asynqtest/asynqtest.go @@ -6,7 +6,6 @@ package asynqtest import ( - "encoding/json" "math" "sort" "testing"