Kitura / Kitura-redis

Swift Redis library
Apache License 2.0
94 stars 25 forks source link

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

Open icyield opened 4 years ago

icyield commented 4 years ago

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