OutputCacheAttribute.Duration Property

 

Gets or sets the cache duration, in seconds.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

public int Duration { get; set; }
public:
property int Duration {
    int get();
    void set(int value);
}
member Duration : int with get, set
Public Property Duration As Integer

Property Value

Type: System.Int32

The cache duration.

Remarks

The time, in seconds, that the output is cached.

See Also

OutputCacheAttribute Class
System.Web.Mvc Namespace

Return to top