@@ -23,7 +23,10 @@ import NIO
23
23
///
24
24
/// See [https://redis.io/commands](https://redis.io/commands)
25
25
public protocol RedisClient {
26
- /// The `EventLoop` that this client operates on.
26
+ /// Is the client currently connected to Redis?
27
+ var isConnected : Bool { get }
28
+
29
+ /// The `NIO.EventLoop` that this client operates on.
27
30
var eventLoop : EventLoop { get }
28
31
29
32
/// The `Logging.Logger` that this client uses.
@@ -33,7 +36,7 @@ public protocol RedisClient {
33
36
/// - Parameters:
34
37
/// - command: The command to execute.
35
38
/// - arguments: The arguments, if any, to be sent with the command.
36
- /// - Returns: An ` EventLoopFuture` that will resolve with the Redis command response.
39
+ /// - Returns: A `NIO. EventLoopFuture` that will resolve with the Redis command response.
37
40
func send( command: String , with arguments: [ RESPValue ] ) -> EventLoopFuture < RESPValue >
38
41
39
42
/// Updates the client's logger.
@@ -44,7 +47,7 @@ public protocol RedisClient {
44
47
extension RedisClient {
45
48
/// Sends the desired command without arguments.
46
49
/// - Parameter command: The command keyword to execute.
47
- /// - Returns: An ` EventLoopFuture` that will resolve with the Redis command response.
50
+ /// - Returns: A `NIO. EventLoopFuture` that will resolve with the Redis command response.
48
51
public func send( command: String ) -> EventLoopFuture < RESPValue > {
49
52
return self . send ( command: command, with: [ ] )
50
53
}
0 commit comments