Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请求添加对XADD命令的支持 #144

Open
coolcalf opened this issue Jan 1, 2025 · 3 comments
Open

请求添加对XADD命令的支持 #144

coolcalf opened this issue Jan 1, 2025 · 3 comments

Comments

@coolcalf
Copy link

coolcalf commented Jan 1, 2025

请问有对 XADD命令 支持的计划吗?

@microsofter
Copy link

microsofter commented Jan 1, 2025 via email

@nnhy
Copy link
Member

nnhy commented Jan 1, 2025

完整消息队列 RedisStream 一直都支持XADD。

image

@nnhy
Copy link
Member

nnhy commented Jan 1, 2025

摘取自 QueueDemo 的 FullQueue :

`
var queue = redis.GetStream(topic);

    var area = new Area { Code = 110000, Name = "北京市" };
    XTrace.WriteLine("Public {0} {1}", area.Code, area.Name);
    queue.Add(area);
    Thread.Sleep(1000);

    area = new Area { Code = 310000, Name = "上海市" };
    XTrace.WriteLine("Public {0} {1}", area.Code, area.Name);
    queue.Add(area);
    Thread.Sleep(1000);

    area = new Area { Code = 440100, Name = "广州市" };
    XTrace.WriteLine("Public {0} {1}", area.Code, area.Name);
    queue.Add(area);

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants