OutputCacheProviderAsync.SetAsync Method (String, Object, DateTime)

 

Asynchronously Inserts the specified entry into the output cache, overwriting the entry if it is already cached.

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

Public MustOverride Function SetAsync (
	key As String,
	entry As Object,
	utcExpiry As Date
) As Task

Parameters

key
Type: System.String

A unique identifier for entry

entry
Type: System.Object

The content to add to the output cache.

utcExpiry
Type: System.DateTime

The time and date on which the cached entry expires.

Return Value

Type: System.Threading.Tasks.Task

The status of the operation.

.NET Framework
Available since 4.6.2
Return to top
Show: