List of usage examples for org.springframework.data.redis.core RedisConnectionUtils unbindConnection
public static void unbindConnection(RedisConnectionFactory factory)
From source file:org.springframework.integration.redis.outbound.RedisCollectionPopulatingMessageHandler.java
private void processInPipeline(PipelineCallback callback) { RedisConnection connection = RedisConnectionUtils.bindConnection(redisTemplate.getConnectionFactory()); try {/* ww w . jav a 2s . c o m*/ connection.openPipeline(); callback.process(); } finally { connection.closePipeline(); RedisConnectionUtils.unbindConnection(redisTemplate.getConnectionFactory()); } }