Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZRANGEBYSCORE does not use key -> illegal cmd. #75

Open
icyield opened this issue Oct 11, 2019 · 0 comments
Open

ZRANGEBYSCORE does not use key -> illegal cmd. #75

icyield opened this issue Oct 11, 2019 · 0 comments

Comments

@icyield
Copy link

icyield commented Oct 11, 2019

ZRANGEBYSCORE does not use key -> illegal cmd.

/// Return a range of members in a sorted set, by score.
///
/// - Parameter key: The key.
/// - Parameter min: The minimum score to return from the set.
/// - Parameter max: The maximum score to return from the set.
/// - Parameter callback: The callback function, list of elements in the specified score range
/// (optionally their scores)
/// NSError will be non-nil if an error occurred.
public func zrangebyscore(_ key: String, min: String, max: String, callback: ([RedisString?]?, NSError?) -> Void) {
issueCommand("ZRANGEBYSCORE", min, max) { (response: RedisResponse) in
self.redisStringArrayResponseHandler(response, callback: callback)
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant