Skip to content

Commit

Permalink
Update web.zh.md
Browse files Browse the repository at this point in the history
  • Loading branch information
luoyh21 authored Dec 26, 2023
1 parent 5f49c68 commit 823e3cc
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/dev/web.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,19 @@ var/hiper/
- 消息队列:Redis Stream
- client: [github.com/go-redis/redis/v9](https://github.com/go-redis/redis/v9)

发送的方式为:

```mqsend
model.Rdb.XAdd(ctx, &redis.XAddArgs{
Stream: msg.Topic,
MaxLen: 0,
Approx: true,
ID: "*",
Values: []interface{}{"body", msg.Body, "type", msg.Type},
})
```


<!-- TODO -->

### 其他 Service
Expand Down

0 comments on commit 823e3cc

Please sign in to comment.