You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LettuceCommands have repetitive code fragments within try - catch blocks for differentiating between transaction, pipeline and normal command execution.
This can be simplified by using a RedisFuture
We now use LettuceInvoker to call Lettuce API methods for synchronous, pipelining, and transactional execution models. LettuceInvoker captures the method invocation as functional utility and allows conversion of results:
Long result = invoker.just(RedisGeoAsyncCommands::geoadd, key, point.getX(), point.getY(), member);
List<byte[]> result = invoker.fromMany(RedisGeoAsyncCommands::geohash, key, members)
.toList(it -> it.getValueOrElse(null));
Closes#1797
Use lambdas where possible. Deprecate unused methods. Favor LettuceInvoker conversion methods over List to List/List to Set converters.
See #1797
Original Pull Request #1948
Christoph Strobl opened DATAREDIS-1224 and commented
The LettuceCommands have repetitive code fragments within
try - catch
blocks for differentiating betweentransaction
,pipeline
and normal command execution.This can be simplified by using a
RedisFuture
No further details from DATAREDIS-1224
The text was updated successfully, but these errors were encountered: