ronp001 / SwiftRedis

A Swift client for Redis, providing asynchronous operation
MIT License
28 stars 3 forks source link

Bug in getValueForKey #1

Closed szhernovoy closed 7 years ago

szhernovoy commented 8 years ago

Hi, I SET a value 8 for the key "config:test" in my Redis. When I try to retrieve it using your piece if code: redis.getValueForKey("config:test", completionHandler: { (success, key, result, cmd) in if success { print("the stored data for \(key) is \(result!.stringVal)")

I receive the stored data for config:test is Optional("Optional(8)")

where the inner Optional can't be unwrapped because it is just a string with content "Optional(8)" that has a length 11 and contains character "8".

Please look at this

ronp001 commented 8 years ago

Can you post the code you used to store the value?