YouTip LogoYouTip

Sets Sscan

# Redis Sscan Command [!(#) Redis Sets](#) The Redis SSCAN command is used to iterate over elements of a Set, inheriting from (#). ### Syntax Basic syntax of the Redis SSCAN command is as follows: SSCAN key cursor * cursor - Cursor. * pattern - Pattern to match. * count - Specifies how many elements to return from the dataset; default value is 10. ### Available since >= 2.8.0 ### Return value Array list. ### Example ## Example > SADD myset1 "Google" (integer)1 > SADD myset1 "" (integer)1 > SADD myset1 "Taobao" (integer)1 > SSCAN myset1 0 match R* 1)"0" 2)1)"" [!(#) Redis Sets](#)
← Redis Sorted SetsSets Sunionstore β†’