gpt4 book ai didi

java - 无法在 Spring Data Redis 中管道化 EVALSHA 命令

转载 作者:可可西里 更新时间:2023-11-01 11:23:45 26 4
gpt4 key购买 nike

我正在尝试将 Redis 的 EVALSHA 命令管道化为 Spring Data Redis 中的 described here .

然而,当我尝试使用 EVALSHA 执行此操作时,它会抛出一个 UnsupportedOperationException 发现 here in the Spring Data Redis code .

鉴于 Redis 本身 supports this :

Sometimes the application may also want to send EVAL or EVALSHA commands in a pipeline. This is entirely possible and Redis explicitly supports it

还有绝地武士 supports this Spring Data Redis 是如何阻止它发生的?这只是一个尚未实现的功能,还是因为某些原因不可行而不受支持?如果是这样,在 Spring Data Redis 中流水线脚本的替代方法是什么?

最佳答案

我不熟悉 spring boot 的细节,但您可以创建一个新脚本,将所有流水线命令作为单个脚本调用。为此,您需要将所有脚本串联成一个脚本并合并数据,以便一切都可以按照您需要的方式执行。

关于java - 无法在 Spring Data Redis 中管道化 EVALSHA 命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55205566/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com