PostSharp6.3/API Reference/Post­Sharp.​Patterns.​Caching.​Implementation Namespace/Caching­Backend Class/Caching­Backend Methods/Caching­Backend.​Set­Item­Async Method

CachingBackend.SetItemAsync Method

Asynchronously sets a cache item.

Namespace:  PostSharp.Patterns.Caching.Implementation
Assembly:  PostSharp.Patterns.Caching (in PostSharp.Patterns.Caching.dll) Version: 6.3.11.0 (6.3.11.0)
Syntax
C#
public Task SetItemAsync(
	string key,
	CacheItem item,
	CancellationToken cancellationToken = null
)

Parameters

key
Type: System.String
The key of the cache item.
item
Type: PostSharp.Patterns.Caching.Implementation.CacheItem
The cache item.
cancellationToken (Optional)
Type: System.Threading.CancellationToken
A CancellationToken.

Return Value

Type: Task
A Task.
See Also