DATAREDIS-367 - Make RedisConnection AutoClosable

This commit is contained in:
James Howe
2020-01-09 10:47:56 +00:00
committed by Mark Paluch
parent fca2766626
commit 163e9d4fac

View File

@@ -28,7 +28,7 @@ import org.springframework.dao.DataAccessException;
* @author Christoph Strobl
* @author Mark Paluch
*/
public interface RedisConnection extends RedisCommands {
public interface RedisConnection extends RedisCommands, AutoCloseable {
/**
* Get {@link RedisGeoCommands}.