Are there issues of any kind with this extension method?
using System;
using System.Web;
namespace AccountingBackupWeb.CacheExtensions
{
public static class Extensions
{
public static T Get<T>(this System.Web.Caching.Cache cache, string key, Func<T> f) where T : class
{
T results = HttpContext.Current.Cache[key] as T;
if (results == null)
{
results = f();
HttpContext.Current.Cache[key] = results;
}
return results;
}
}
}
cache
as the first parameter when you don't use it in the method at all? \$\endgroup\$