public <T> T execute(RedisCallback<T> action, boolean exposeConnection, boolean pipeline){ Assert.isTrue(this.initialized, "template not initialized; call afterPropertiesSet() before using it"); Assert.notNull(action, "Callback object must not be null"); RedisConnectionFactory factory = this.getConnectionFactory(); RedisConnection conn = null;