Which code segment can you use?

The GetVendors() action in the ProcessedOrderController controller is querying the database each time it is run. The GetVendors() action must query the database only if the cache is null,
You need to add code to the action at line PC33 to cache the data
Which code segment can you use? (Each correct answer presents a complete solution. Choose all that apply.)
A. cache.Set(new Cacheltem("vendorKey", vendors), GetVendorPolicy());
B. cache.Addfvendors", vendors, new CacheltemPolicy());
C. cache.Add(new Cacheltem("vendorKey", vendors), GetVendorPolicy());
D. cache.AddOrGetExisting("vendorKey”, context, new CacheltemPolicy());

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.