The following protocols are available globally.
An object capable of sending commands and receiving responses.
let client = ... let result = client.send(command: "GET", arguments: ["my_key"]) // result == EventLoopFuture<RESPValue>
For the full list of available commands, see https://redis.io/commandsSee more
public protocol RedisClient
An object that is capable of being converted to and from
ImportantWhen conforming your types to be sent to a Redis server, it is expected to always be stored in a
.bulkStringrepresentation. Redis will reject any other
RESPValuetype sent to it.
Conforming to this protocol only provides convenience methods of translating the Swift type into a
RESPValuerepresentation within the driver, and references to a
RESPValueConvertibleinstance should be short lived for that purpose.
public protocol RESPValueConvertible