@@ -5,23 +5,23 @@ extension RedisConnection {
5
5
/// Select the Redis logical database having the specified zero-based numeric index.
6
6
/// New connections always use the database 0.
7
7
///
8
- /// https://redis.io/commands/select
8
+ /// [ https://redis.io/commands/select](https://redis.io/commands/select)
9
9
public func select( _ id: Int ) -> EventLoopFuture < Void > {
10
10
return command ( " SELECT " , arguments: [ RESPValue ( bulk: id. description) ] )
11
11
. map { _ in return ( ) }
12
12
}
13
13
14
14
/// Request for authentication in a password-protected Redis server.
15
15
///
16
- /// https://redis.io/commands/auth
16
+ /// [ https://redis.io/commands/auth](https://redis.io/commands/auth)
17
17
public func authorize( with password: String ) -> EventLoopFuture < Void > {
18
18
return command ( " AUTH " , arguments: [ RESPValue ( bulk: password) ] )
19
19
. map { _ in return ( ) }
20
20
}
21
21
22
22
/// Removes the specified keys. A key is ignored if it does not exist.
23
23
///
24
- /// https://redis.io/commands/del
24
+ /// [ https://redis.io/commands/del](https://redis.io/commands/del)
25
25
/// - Returns: A future number of keys that were removed.
26
26
public func delete( _ keys: String ... ) -> EventLoopFuture < Int > {
27
27
let keyArgs = keys. map { RESPValue ( bulk: $0) }
@@ -37,7 +37,7 @@ extension RedisConnection {
37
37
/// Set a timeout on key. After the timeout has expired, the key will automatically be deleted.
38
38
/// A key with an associated timeout is often said to be volatile in Redis terminology.
39
39
///
40
- /// https://redis.io/commands/expire
40
+ /// [ https://redis.io/commands/expire](https://redis.io/commands/expire)
41
41
/// - Parameters:
42
42
/// - after: The lifetime (in seconds) the key will expirate at.
43
43
/// - Returns: A future bool indicating if the expiration was set or not.
@@ -55,7 +55,7 @@ extension RedisConnection {
55
55
/// If the key does not exist the value will be `nil`.
56
56
/// An error is resolved if the value stored at key is not a string, because GET only handles string values.
57
57
///
58
- /// https://redis.io/commands/get
58
+ /// [ https://redis.io/commands/get](https://redis.io/commands/get)
59
59
public func get( _ key: String ) -> EventLoopFuture < String ? > {
60
60
return command ( " GET " , arguments: [ RESPValue ( bulk: key) ] )
61
61
. map { return $0. string }
@@ -65,7 +65,7 @@ extension RedisConnection {
65
65
/// If key already holds a value, it is overwritten, regardless of its type.
66
66
/// Any previous time to live associated with the key is discarded on successful SET operation.
67
67
///
68
- /// https://redis.io/commands/set
68
+ /// [ https://redis.io/commands/set](https://redis.io/commands/set)
69
69
public func set( _ key: String , to value: String ) -> EventLoopFuture < Void > {
70
70
return command ( " SET " , arguments: [ RESPValue ( bulk: key) , RESPValue ( bulk: value) ] )
71
71
. map { _ in return ( ) }
0 commit comments