IDistributedCache IDistributedCache Interface

Syntax

Declaration

public interface IDistributedCachePublic Interface IDistributedCache

Methods summary

Methods

  • Get(String)
    Get(String)
    byte[] Get(string key)Function Get(key As String) As Byte()

    Parameters

    • key
      System.String
      System.String

    Returns

    • System.Byte[]
      System.Byte()
  • GetAsync(String)
    GetAsync(String)
    Task<byte[]> GetAsync(string key)Function GetAsync(key As String) As Task(Of Byte())

    Parameters

    • key
      System.String
      System.String

    Returns

    • System.Threading.Tasks.Task<TResult><System.Byte[]>
      System.Threading.Tasks.Task<TResult>(Of System.Byte())
  • Refresh(String)
    Refresh(String)
    void Refresh(string key)Sub Refresh(key As String)

    Parameters

    • key
      System.String
      System.String
  • RefreshAsync(String)
    RefreshAsync(String)
    Task RefreshAsync(string key)Function RefreshAsync(key As String) As Task

    Parameters

    • key
      System.String
      System.String

    Returns

    • System.Threading.Tasks.Task
      System.Threading.Tasks.Task
  • Remove(String)
    Remove(String)
    void Remove(string key)Sub Remove(key As String)

    Parameters

    • key
      System.String
      System.String
  • RemoveAsync(String)
    RemoveAsync(String)
    Task RemoveAsync(string key)Function RemoveAsync(key As String) As Task

    Parameters

    • key
      System.String
      System.String

    Returns

    • System.Threading.Tasks.Task
      System.Threading.Tasks.Task
  • Set(String, Byte[], DistributedCacheEntryOptions)
    Set(String, Byte(), DistributedCacheEntryOptions)
    void Set(string key, byte[] value, DistributedCacheEntryOptions options)Sub Set(key As String, value As Byte(), options As DistributedCacheEntryOptions)

    Parameters

  • SetAsync(String, Byte[], DistributedCacheEntryOptions)
    SetAsync(String, Byte(), DistributedCacheEntryOptions)
    Task SetAsync(string key, byte[] value, DistributedCacheEntryOptions options)Function SetAsync(key As String, value As Byte(), options As DistributedCacheEntryOptions) As Task

    Parameters

    Returns

    • System.Threading.Tasks.Task
      System.Threading.Tasks.Task

Details

Assembly

Microsoft.Extensions.Caching.Abstractions.dll