এএসপি.নেট এমভিসি 2 তে আমি OutputCache
এবং VaryByParam
বৈশিষ্ট্যটি ব্যবহার করি । আমি এটি একটি একক প্যারামিটার দিয়ে সূক্ষ্মভাবে কাজ করতে পেরেছি, তবে যখন পদ্ধতিটিতে আমার বেশ কয়েকটি পরামিতি রয়েছে তখন সঠিক বাক্য গঠন কী?
[OutputCache(Duration=30, VaryByParam = "customerId"]
public ActionResult Index(int customerId)
{
//I've got this one under control, since it only has one parameter
}
[OutputCache(Duration=30, VaryByParam = "customerId"]
public ActionResult Index(int customerId, int languageId)
{
//What is the correct syntax for VaryByParam now that I have a second parameter?
}
উভয় পরামিতি ব্যবহার করে আমি কীভাবে পৃষ্ঠাগুলি ক্যাশে করব? আমি কি দু'বার অ্যাট্রিবিউট যুক্ত করব? অথবা মান হিসাবে "গ্রাহকআইডি, ল্যাঙ্গুয়েজআইডি" লিখবেন ??