Package org.apache.storm.redis.common.container

## Interface RedisCommandsInstanceContainer

- All Superinterfaces:
    `AutoCloseable`, `Closeable`
  All Known Implementing Classes:
    `RedisClusterContainer`, `RedisContainer`

      public interface RedisCommandsInstanceContainer
      extends Closeable

  Interfaces for containers which stores instances implementing RedisCommands.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `RedisCommands` | `getInstance()` | Borrows instance from container.
    `void` | `returnInstance​(RedisCommands redisCommands)` | Returns instance to container.

    - ### Methods inherited from interface java.io.Closeable

      `close`

- - ### Method Detail

    - #### getInstance

          RedisCommands getInstance()

      Borrows instance from container.
      Returns:
        instance which implements RedisCommands

    - #### returnInstance

          void returnInstance​(RedisCommands redisCommands)

      Returns instance to container.
      Parameters:
        `redisCommands` - borrowed instance