@@ -43,15 +43,15 @@ object RedisClient {
43
43
44
44
val release : RedisClient => F [Unit ] = client =>
45
45
Log [F ].info(s " Releasing Redis connection: $uri" ) *>
46
- FutureLift [F ]
47
- .lift(
48
- client.underlying.shutdownAsync(
49
- config.shutdown.quietPeriod.toNanos,
50
- config.shutdown.timeout.toNanos,
51
- TimeUnit .NANOSECONDS
52
- )
46
+ FutureLift [F ]
47
+ .lift(
48
+ client.underlying.shutdownAsync(
49
+ config.shutdown.quietPeriod.toNanos,
50
+ config.shutdown.timeout.toNanos,
51
+ TimeUnit .NANOSECONDS
53
52
)
54
- .void
53
+ )
54
+ .void
55
55
56
56
(acquire, release)
57
57
}
@@ -68,20 +68,20 @@ object RedisClient {
68
68
implicit val fl : FutureLift [F ] = MkRedis [F ].futureLift
69
69
implicit val log : Log [F ] = MkRedis [F ].log
70
70
71
- /**
72
- * Creates a [[RedisClient ]] with default options.
71
+ /** Creates a [[RedisClient ]] with default options.
73
72
*
74
73
* Example:
75
74
*
76
75
* {{{
77
76
* RedisClient[IO].from("redis://localhost")
78
77
* }}}
79
78
*/
80
- def from (strUri : => String )(implicit F : Sync [F ]): Resource [F , RedisClient ] =
79
+ def from (strUri : => String )(
80
+ implicit F : Sync [F ]
81
+ ): Resource [F , RedisClient ] =
81
82
Resource .eval(RedisURI .make[F ](strUri)).flatMap(this .fromUri(_))
82
83
83
- /**
84
- * Creates a [[RedisClient ]] with default options from a validated URI.
84
+ /** Creates a [[RedisClient ]] with default options from a validated URI.
85
85
*
86
86
* Example:
87
87
*
@@ -94,11 +94,12 @@ object RedisClient {
94
94
*
95
95
* You may prefer to use [[from ]] instead, which takes a raw string.
96
96
*/
97
- def fromUri (uri : => RedisURI )(implicit F : Sync [F ]): Resource [F , RedisClient ] =
97
+ def fromUri (uri : => RedisURI )(
98
+ implicit F : Sync [F ]
99
+ ): Resource [F , RedisClient ] =
98
100
Resource .eval(Sync [F ].delay(ClientOptions .create())).flatMap(this .custom(uri, _))
99
101
100
- /**
101
- * Creates a [[RedisClient ]] with the supplied options.
102
+ /** Creates a [[RedisClient ]] with the supplied options.
102
103
*
103
104
* Example:
104
105
*
@@ -115,8 +116,7 @@ object RedisClient {
115
116
): Resource [F , RedisClient ] =
116
117
Resource .eval(RedisURI .make[F ](strUri)).flatMap(this .custom(_, opts))
117
118
118
- /**
119
- * Creates a [[RedisClient ]] with the supplied options from a validated URI.
119
+ /** Creates a [[RedisClient ]] with the supplied options from a validated URI.
120
120
*
121
121
* Example:
122
122
*
@@ -128,8 +128,8 @@ object RedisClient {
128
128
* } yield cli
129
129
* }}}
130
130
*
131
- * Additionally, it can take a [[dev.profunktor.redis4cats.config.Redis4CatsConfig ]] to configure the shutdown timeouts,
132
- * for example. However, you don't need to worry about this in most cases.
131
+ * Additionally, it can take a [[dev.profunktor.redis4cats.config.Redis4CatsConfig ]] to configure the shutdown
132
+ * timeouts, for example. However, you don't need to worry about this in most cases.
133
133
*
134
134
* {{{
135
135
* RedisClient[IO].custom(uri, ops, Redis4CatsConfig())
0 commit comments