Domanda

Come possiamo sventare i comandi di Flushtall e Flushdb Redis usando il client Stackexchange Redis?

È stato utile?

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
scroll top