Skip to main content

SPOP

Note

Official reference: SPOP.

Remove and return random set members.

Syntax​

SPOP key [count]

Omit count for one member; otherwise pop at most count distinct members.

Results​

ReturnRowsContent
ResultSetmultipleELEMENT field, STRING type

Example​

SADD demo:tags java jdbc
SPOP demo:tags 1