/// 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)
}
}
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) } }