作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
之前我们的源是使用 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/
之前我们的源是使用 Booksleave 库连接到 Redis,现在我们正在迁移源以使用 StackExchange.Redis 库。在现有源代码中,我们使用了如下所示的查找命令 var t = co
我是一名优秀的程序员,十分优秀!