Redis Modules - Low Level API - Set type API

24 views
Skip to first unread message

Abhisaar Sharma

unread,
Mar 11, 2018, 6:17:41 PM3/11/18
to Redis DB
Hi,

For making my module, i hoped to iterate over the elements of a set given it's key using the low level set api. However the documentation on https://redis.io/topics/modules-intro seems missing.  

Set type API

Work in progress.



Does anyone know of a way where i can accomplish this task using the low level API?

Thanks,
Abhisaar.

Itamar Haber

unread,
Mar 12, 2018, 5:34:03 AM3/12/18
to Redis DB
Hello Abhisaar,

The low-level API for iterating sets has yet to be implemented. Instead, you can use the high-level/RedisModule_Call API to call `SSCAN` on your set and iterate the members.

Cheers,
Itamar

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+unsubscribe@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at https://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.

Abhisaar Sharma

unread,
Mar 12, 2018, 3:58:51 PM3/12/18
to Redis DB
Thanks Itamar, 

I had been using SMEMBERS for now to iterate over the set elements. Excited for the low level api since its claimed to be an order of magnitude faster.

Abhisaar.


On Monday, 12 March 2018 02:34:03 UTC-7, Itamar Haber wrote:
Hello Abhisaar,

The low-level API for iterating sets has yet to be implemented. Instead, you can use the high-level/RedisModule_Call API to call `SSCAN` on your set and iterate the members.

Cheers,
Itamar

On Mar 12, 2018 00:17, "Abhisaar Sharma" <sharma....@gmail.com> wrote:
Hi,

For making my module, i hoped to iterate over the elements of a set given it's key using the low level set api. However the documentation on https://redis.io/topics/modules-intro seems missing.  

Set type API

Work in progress.



Does anyone know of a way where i can accomplish this task using the low level API?

Thanks,
Abhisaar.

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages