Microsoft認定資格 Developer Associate(予想問題) その8

問題 25 / 65

製品情報を更新した際に Azure Cache for Redis の "Products" キーだけを削除してキャッシュを無効化するための適切なコードスニペットはどれですか 前提: ConnectionMultiplexer 型の Connection が既に初期化されている

IDatabase cache = Connection.GetDatabase(); cache.KeyDelete("Products");
IDatabase cache = Connection.GetDatabase(); cache.RemoveKey("Products");
var server = Connection.GetServer(); server.FlushDatabase();
IDatabase cache = Connection.GetDatabase(); cache.StringSet("Products", null);
Connection.KeyDelete("Products");

当サイトでは、ユーザー体験の向上を目的としてCookieを使用しています。サイトの利用を継続することで、Cookieの使用に同意したものとみなされます。