IDistributedCache.Refresh(String) Method

Definition

Refreshes a value in the cache based on its key, resetting its sliding expiration timeout (if any).

public void Refresh(string key);

Parameters

key
String

A string identifying the requested value.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.0 (package-provided)