Вопрос

I'm creating a custom output cache provider by implementing the OutputCacheProvider class in an ASP.NET MVC application.

In the below methods,

public override object Add(string key, object entry, DateTime expiryDate)
{
   // 
}

public override void Set(string key, object entry, DateTime expiryDate)
{
  //
}

The expiryDate is in UTC or server time?

Это было полезно?

Решение

It is a utcExpiry as per msdn

(OutputCacheProvider.Add Method)

public abstract Object Add(
    string key,
    Object entry,
    DateTime utcExpiry
)
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top