ronp001 / SwiftRedis

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

How to connect with no authentification #2

Closed seppelandrio closed 8 years ago

seppelandrio commented 8 years ago

Hi,

I have a question: normally I access redis with 'password@ip:port/DBnumber'. My redis commands don't need authentification. How can I use your client for accessing my database?

If I use:

let redis = RedisInterface(host: "password@ip", port: 6379, auth: "")
redis.connect()
redis.getValueForKey(...)
redis.quit(nil)

the callback from getValueForKey is never called because the function returns at first line of 'sendNextCommandIfPossible'.

Thanks for your help. Seppelandrio