Redis Collection Operations

Source: Internet
Author: User

"Redis Collection Operations "

1.SCard Key

Returns key the cardinality of the collection (the number of elements in the collection).

2.sdiffstore destination key [key ...]

This command works similarly to Sdiff, but it saves the result to the destination collection instead of simply returning the result set.

If the destination collection already exists, overwrite it.

destinationcan be key itself.

3.SINTER key [key ...]

Returns all the members of a collection that are the intersection of all given collections.

Non-existent key is considered an empty set.

When there is an empty set in a given collection, the result is also an empty set (according to the Law of collection Operations).

Reference: http://redisdoc.com/

Redis Collection Operations

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.