Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 681 Bytes

File metadata and controls

20 lines (15 loc) · 681 Bytes

MemoryCacheExtensions.TryGet<TItem> method

namespace: Serenity   assemblySerenity.Net.Core

Reads the value of given type with specified key from the local cache. If the value doesn't exist or not of given type, it returns null.

public static TItem TryGet<TItem>(this IMemoryCache cache, string cacheKey)
    where TItem : class
parameter description
TItem Expected type
cache Cache
cacheKey Key

See Also