Come eseguire i comandi a filo su Stackexchange Redis Client utilizzando C #
-
26-12-2019 - |
Domanda
Come possiamo sventare i comandi di Flushtall e Flushdb Redis usando il client Stackexchange Redis?
Soluzione
Homepage del progetto ha un https Sezione della documentazione , che include Dove sono chiavi, scansione, flushdb ecc?
La risposta breve è: tramite IServer
.La documentazione include il "perché".
// 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
. Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow