// show all keys in database 0 that include "foo" in their name
foreach(var key in server.Keys(pattern: "*foo*")) {
foreach(var key in server.Keys(pattern: "*foo*")) {
Console.WriteLine(key);
Console.WriteLine(key);
}
}
// completely wipe ALL keys from database 0
server.FlushDatabase();
server.FlushDatabase();
Note that unlike the `IDatabase` API (where the target database has already been selected in the `GetDatabase()` call), these methods take an optional parameter for the database, or it defaults to `0`.
Note that unlike the `IDatabase` API (where the target database has already been selected in the `GetDatabase()` call), these methods take an optional parameter for the database, or it defaults to `0`.