Kitura / Kitura-redis

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

error: ambiguous reference to member 'set(_:value:exists:expiresIn:callback:)' #47

Closed teechap closed 7 years ago

teechap commented 7 years ago

I may be using this library wrong, but it looks like there are 2 different public func set declarations for the Redis class. When I try to compile the code below, I see the error in the title...

redis.set(key, value: RedisString("Hello"), expiresIn: expire) { (result: Bool, redisError: NSError?) in
// do stuff

Am I doing something wrong or is this a bug? I would really appreciate the help!

teechap commented 7 years ago

Er...it compiles ok when when I remove the expiresIn parameter. (???) :-/