News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;

Store the number of active bugs in the cache. The value should remain in the cache when there are calls more often than
every 15 seconds. The value should be removed from the cache after 60 seconds. You need to add code to
meet the requirements. Which code segment should you add?

  1. Cache.Insert("ActiveBugs", result, null,DateTime.Now.AddSeconds(60), TimeSpan.FromSeconds(15));
    
  2. Cache.Insert("Trigger", DateTime.Now, null,DateTime.Now.AddSeconds(60), Cache.NoSlidingExpiration);
    CacheDependency cd = new CacheDependency(null,new string[] { "Trigger" });
    Cache.Insert("ActiveBugs", result, cd, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(15));
    
  3. Cache.Insert("ActiveBugs", result, null,Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(15));
    CacheDependency cd = new CacheDependency(null,new string[] { "ActiveBugs" });
    Cache.Insert("Trigger", DateTime.Now, cd, DateTime.Now.AddSeconds(60), Cache.NoSlidingExpiration);
    
  4. CacheDependency cd = new CacheDependency(null, new string[] { "Trigger" });
    Cache.Insert("Trigger", DateTime.Now, null,DateTime.Now.AddSeconds(60), Cache.NoSlidingExpiration);
    Cache.Insert("ActiveBugs", result, cd, Cache.NoAbsoluteExpiration, TimeSpan.FromSeconds(15));
    
Answer: Answer is b
Further Reading:

Useful resources, ASP.NET Caching, Cache Class

comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;