RedisClientPartiallyApplied
dev.profunktor.redis4cats.connection.RedisClient.RedisClientPartiallyApplied
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
def custom(uri: => RedisURI, opts: ClientOptions, config: Redis4CatsConfig): Resource[F, RedisClient]
Creates a RedisClient with the supplied options from a validated URI.
Creates a RedisClient with the supplied options from a validated URI.
Example:
for {
uri <- Resource.eval(RedisURI.make[F]("redis://localhost"))
ops <- Resource.eval(Sync[F].delay(ClientOptions.create())) // configure timeouts, etc
cli <- RedisClient[IO].custom(uri, ops)
} yield cli
Additionally, it can take a dev.profunktor.redis4cats.config.Redis4CatsConfig to configure the shutdown timeouts, for example. However, you don't need to worry about this in most cases.
RedisClient[IO].custom(uri, ops, Redis4CatsConfig())
If not supplied, sane defaults will be used.
Attributes
Creates a RedisClient with default options.
Attributes
Creates a RedisClient with default options from a validated URI.
Creates a RedisClient with default options from a validated URI.
Example:
for {
uri <- Resource.eval(RedisURI.make[F]("redis://localhost"))
cli <- RedisClient[IO].fromUri(uri)
} yield cli
You may prefer to use from instead, which takes a raw string.
Attributes
Creates a RedisClient with the supplied options.
Creates a RedisClient with the supplied options.
Example:
for {
ops <- Resource.eval(Sync[F].delay(ClientOptions.create())) // configure timeouts, etc
cli <- RedisClient[IO].withOptions("redis://localhost", ops)
} yield cli
Attributes
In this article