Module methanol.redis
Interface RedisConnectionProvider<C extends io.lettuce.core.api.StatefulConnection<String,ByteBuffer>>
- Type Parameters:
C
- the type of the connection
- All Superinterfaces:
AutoCloseable
public interface RedisConnectionProvider<C extends io.lettuce.core.api.StatefulConnection<String,ByteBuffer>>
extends AutoCloseable
A strategy for connecting to Redis using Lettuce.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Releases the resources associated with thisRedisConnectionProvider
.Asynchronously connects to Redis and returns the connection.void
Specifies that a connection returned by this provider is not needed anymore.
-
Method Details
-
connectAsync
CompletionStage<C> connectAsync()Asynchronously connects to Redis and returns the connection. -
release
Specifies that a connection returned by this provider is not needed anymore. -
close
void close()Releases the resources associated with thisRedisConnectionProvider
.- Specified by:
close
in interfaceAutoCloseable
-