Skip to content

Commit

Permalink
Merge pull request #7 from golang-acexy/develop
Browse files Browse the repository at this point in the history
支持消息订阅&队列
  • Loading branch information
acexy authored Jun 14, 2024
2 parents 50e4e5c + 782168c commit ede26d9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/cmdothers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,16 @@ func TestQueue(t *testing.T) {

wg.Wait()
}

func TestQueuePop(t *testing.T) {
cmd := redismodule.QueueCmd()
key := redismodule.RedisKey{
KeyFormat: "queue",
}
c := cmd.Pop(context.Background(), key)

for d := range c {
fmt.Println(d)
}

}

0 comments on commit ede26d9

Please sign in to comment.