@Override public <T extends Closeable> T executeWithStickyConnection(RedisCallback<T> callback) { Assert.isTrue(initialized, "template not initialized; call afterPropertiesSet() before using it"); Assert.notNull(callback, "Callback object must not be null"); RedisConnectionFactory factory = getRequiredConnectionFactory(); RedisConnection connection = preProcessConnection(RedisConnectionUtils.doGetConnection(factory, true, false, false), false); return callback.doInRedis(connection); }
RedisConnection connToUse = preProcessConnection(conn, existingConnection);
@Override public <T extends Closeable> T executeWithStickyConnection(RedisCallback<T> callback) { Assert.isTrue(initialized, "template not initialized; call afterPropertiesSet() before using it"); Assert.notNull(callback, "Callback object must not be null"); RedisConnectionFactory factory = getRequiredConnectionFactory(); RedisConnection connection = preProcessConnection(RedisConnectionUtils.doGetConnection(factory, true, false, false), false); return callback.doInRedis(connection); }
@Override public <T extends Closeable> T executeWithStickyConnection(RedisCallback<T> callback) { Assert.isTrue(initialized, "template not initialized; call afterPropertiesSet() before using it"); Assert.notNull(callback, "Callback object must not be null"); RedisConnectionFactory factory = getRequiredConnectionFactory(); RedisConnection connection = preProcessConnection(RedisConnectionUtils.doGetConnection(factory, true, false, false), false); return callback.doInRedis(connection); }
RedisConnection connToUse = preProcessConnection(conn, existingConnection);
RedisConnection connToUse = preProcessConnection(conn, existingConnection);