Interface RedisCommandsInstanceContainer
- All Superinterfaces:
AutoCloseable
,Closeable
- All Known Implementing Classes:
RedisClusterContainer
,RedisContainer
Interfaces for containers which stores instances implementing RedisCommands.
-
Method Summary
Modifier and TypeMethodDescriptionBorrows instance from container.void
returnInstance
(RedisCommands redisCommands) Returns instance to container.
-
Method Details
-
getInstance
RedisCommands getInstance()Borrows instance from container.- Returns:
- instance which implements RedisCommands
-
returnInstance
Returns instance to container.- Parameters:
redisCommands
- borrowed instance
-