Compartir a través de


CacheServiceExtensions Class

Definition

Extension methods for the ICacheService.

public ref class CacheServiceExtensions abstract sealed
public static class CacheServiceExtensions
type CacheServiceExtensions = class
Public Module CacheServiceExtensions
Inheritance
CacheServiceExtensions

Methods

SetItemAsync(ICacheService, CacheItemKey, Stream, Boolean, CancellationToken)

Tries to add an item to cache and return a unique key. Stream will be read till end to determine content and size.

TryGetItemAsync(ICacheService, CacheItemKey, Boolean, CancellationToken)

Tries to retrieve an item from cache that is assigned to a particular key.

TryGetItemAsync(ICacheService, CacheItemKey, CancellationToken)

Tries to retrieve an item from cache that is assigned to a particular key.

Applies to