Search Results for

    Show / Hide Table of Contents

    Class InMemoryCacheProvider

    Simple in memory cache provider

    Inheritance
    System.Object
    InMemoryCacheProvider
    Namespace: PnP.Framework.Utilities.Cache
    Assembly: PnP.Framework.dll
    Syntax
    public class InMemoryCacheProvider : object, ICacheProvider

    Methods

    Get<T>(String)

    Gets an item from the cache

    Declaration
    public T Get<T>(string cacheKey)
    Parameters
    System.String cacheKey

    Key of the object to get from cache

    Returns
    T

    Default type value if not found, the object otherwise

    Type Parameters
    T

    Type of the object to get from cache

    Implements
    ICacheProvider.Get<T>(String)

    Put<T>(String, T)

    Stores an object in the cache. If the object exists it will be updated

    Declaration
    public void Put<T>(string cacheKey, T item)
    Parameters
    System.String cacheKey

    Key of the object to store in the cache

    T item

    The actual object to store in the cache

    Type Parameters
    T

    Type of the object to store in the cache

    Implements
    ICacheProvider.Put<T>(String, T)

    Extension Methods

    ValidationExtensions.ValidateNotNullOrEmpty<T>(T, String)
    ObjectExtensions.Set<TObject, T>(TObject, Expression<Func<TObject, T>>, T, Boolean, Boolean)
    ObjectExtensions.GetPublicInstancePropertyValue(Object, String)
    ObjectExtensions.GetPublicInstanceProperty(Object, String)
    ObjectExtensions.SetPublicInstancePropertyValue(Object, String, Object)
    Extensions.ToByteArray(Object)
    Back to top PnP Framework
    Generated by DocFX with Material UI
    spacer