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.
-
-
-
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
-
-