openresty / lua-resty-redis

Lua redis client driver for the ngx_lua based on the cosocket API
1.91k stars 448 forks source link

[feature request] add ZRANDMEMBER command #281

Closed 0xDEADFED5 closed 2 months ago

0xDEADFED5 commented 2 months ago

https://redis.io/docs/latest/commands/zrandmember/

spacewander commented 2 months ago

This should be supported yet. See https://github.com/openresty/lua-resty-redis?tab=readme-ov-file#methods

0xDEADFED5 commented 2 months ago

ERR unknown command zrandmember, with args beginning with: views, 25, WITHSCORES, , client: 127.0.0.1, server: localhost, request: "GET /random HTTP/1.1", host: "localhost"

spacewander commented 2 months ago

This error message was returned from Redis. lua-resty-redis just forwards it.

0xDEADFED5 commented 2 months ago

oh man, i'm a little slow, thanks!