The Redis Modules concept introduces dynamic Redis commands beyond the core commands. Lettuce 3.x users cannot truly benefit from the modules as lettuce 3.x does not expose an API to dispatch user commands. Lettuce 4.1 provides a dispatch(Command) method on its connection but it requires additional wrapping and there is no synchronous/reactive support. The only other alternative is calling a Lua script but that's not an alternative.
lettuce should expose T dispatch(ProtocolKeyword, CommandOutput<K, V, T>, CommandArgs<K, V>), RedisFuture<T> and <T> Observable<T> methods to invoke custom commands.
Redis modules and @tidwall's tile38 benefit from this change.
The Redis Modules concept introduces dynamic Redis commands beyond the core commands. Lettuce 3.x users cannot truly benefit from the modules as lettuce 3.x does not expose an API to dispatch user commands. Lettuce 4.1 provides a
dispatch(Command)
method on its connection but it requires additional wrapping and there is no synchronous/reactive support. The only other alternative is calling a Lua script but that's not an alternative.lettuce should expose
T dispatch(ProtocolKeyword, CommandOutput<K, V, T>, CommandArgs<K, V>)
,RedisFuture<T>
and<T> Observable<T>
methods to invoke custom commands.Redis modules and @tidwall's tile38 benefit from this change.