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 Type
    Method
    Description
    void
    Releases the resources associated with this RedisConnectionProvider.
    Asynchronously connects to Redis and returns the connection.
    void
    release(C connection)
    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

      void release(C connection)
      Specifies that a connection returned by this provider is not needed anymore.
    • close

      void close()
      Releases the resources associated with this RedisConnectionProvider.
      Specified by:
      close in interface AutoCloseable