我们如何使用 stackexchange redis 客户端执行 FlushAll 和 FlushDB redis 命令?
最佳答案
project homepage有一个Documentation section , 其中包括 Where are KEYS, SCAN, FLUSHDB etc?
简短的回答是:通过IServer
。该文档包括“为什么”。
// get the target server
var server = conn.GetServer(someServer);
// completely wipe ALL keys from database 0
server.FlushDatabase(); // database number is optional and defaults to 0
关于c# - 如何使用 c# 在 stackexchange redis 客户端上执行刷新命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25074788/