What can be done with redis's set data type?

Alibaba cloud Q & A 2022-02-13 08:15:21 阅读数:853

redis set data type

Redis Of SET What data types can be operated on ?

Take the answer 1:

add to 、 obtain 、 Remove single element

Check if an element exists in the collection

Calculate the intersection 、 Combine 、 Difference set

Get elements randomly from the collection

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130815201289.html