Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5953013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:45:51+00:00 2026-05-22T17:45:51+00:00

From what I see there’s no command for this, but I need something similar

  • 0

From what I see there’s no command for this, but I need something similar to the SISMEMBER command, but for ordered sets. Given that there’s no command for this, what’s the best way to determine if something is a member of an ordered set ? Maybe ask for the score of the member with ZCORE and if there’s no score than there’s no member ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:45:52+00:00Added an answer on May 22, 2026 at 5:45 pm

    As you suggested, I would just use ZSCORE. If nil is returned, then the requested member is not in the set. ZRANK would also work, but it’s O(log n) and ZSCORE is O(1).

    redis> zadd orderedset 1 key1
    (integer) 1
    redis> zadd orderedset 2 key2
    (integer) 1
    redis> zscore orderedset key1
    "1"
    redis> zscore orderedset badkey
    (nil)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From this article on CodeGuru about PayPal IPN, I see there are two fields,
Can anyone see if there is something wrong with this? I get no errors
I see this from time to time and want to know what it is.
As you can see this is a question from a non web developer. I
Using this example coming from Wikipedia, in which DrawSquare() calls DrawLine() : (Note that
Is there a way to inspect the current playlist from MPMusicPlayerController to see whether
I see there are two functions in autoit to download files from the internet:
i am starting out with opengles coming from old opengl. i see there is
How can I create a Popup balloon like you would see from Windows Messenger
I'm been reading up on Ajax and would like to see from the stackoverflow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.