gpt4 book ai didi

redis - 什么是 Booksleave IKeyCommands.Find StackExchange.Redis 中的等价物

转载 作者:IT王子 更新时间:2023-10-29 06:05:19 24 4
gpt4 key购买 nike

之前我们的源是使用 Booksleave 库连接到 Redis,现在我们正在迁移源以使用 StackExchange.Redis 库。在现有源代码中,我们使用了如下所示的查找命令

var t = conn.Keys.Find(database, keyPattern);

StackExchange.Redis 库中 Find 的等效函数是什么?

最佳答案

var server = conn.GetServer(someServer);

server.Keys(pattern: "*foo*");

foo 是您的键模式。

https://github.com/StackExchange/StackExchange.Redis/blob/master/Docs/KeysScan.md

关于redis - 什么是 Booksleave IKeyCommands.Find StackExchange.Redis 中的等价物,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37782828/

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