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

hmget能否增加一个传入fied数组的方法? #29

Open
andex1988 opened this issue Nov 20, 2013 · 4 comments
Open

hmget能否增加一个传入fied数组的方法? #29

andex1988 opened this issue Nov 20, 2013 · 4 comments

Comments

@andex1988
Copy link

现在 red:hmget 传入的是可变参数,能否想hmset一样传入数组啊,或者安装redis
原生的命令 hmget hashname field1 field2?

@agentzh
Copy link
Member

agentzh commented Nov 20, 2013

@andex1988 This place is supposed to be English only. If you want to post in Chinese, please join the openresty (Chinese) mailing list and post there instead: https://groups.google.com/group/openresty

Below are some working examples using the hmget method:

-- HMGET myhash field1 field2 nofield
local res, err = red:hmget("myhash", "field1", "field2", "nofield")

-- HMGET myhash field1 field2 nofield
local fields = {"field1", "field2", "nofield"}
local res, err = red:hmget("myhash", unpack(fields))

@andex1988
Copy link
Author

ok,thanks

@ThomasHaiKuan
Copy link

问个问题,lua中的table数据集合太大了没办法返回数据是什么原因?

@agentzh
Copy link
Member

agentzh commented Oct 17, 2014

@88069684 Please, do not use Chinese here because this place is considered English only (as mentioned above). You're recommended to post your Chinese questions to the openresty Chinese mailing list instead. See http://openresty.org/#Community

Thank you for your cooperation.

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