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

关于RPush,LPush方法的使用问题 #220

Open
ZeeLyn opened this issue Jan 7, 2025 · 1 comment
Open

关于RPush,LPush方法的使用问题 #220

ZeeLyn opened this issue Jan 7, 2025 · 1 comment

Comments

@ZeeLyn
Copy link

ZeeLyn commented Jan 7, 2025

@2881099
我批量动态生成了多个id, 希望通过push方法一次添加到list里面去,通过以下方式调用,直接把数组序列化写入了,而不是多条:
image

写入结果:
image

通过以下方式调用又可以写入多条

await redis.RPushAsync($"wechat_video_spread:{data.Task}", 1,2,3);

对于这种动态生成的数据我该如何调用?

@2881099
Copy link
Owner

2881099 commented Jan 9, 2025

数组转换成 object[]

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

2 participants