Search Results for

    Show / Hide Table of Contents

    Class CacheOptions

    MemoryDistributedCache options class

    Inheritance
    System.Object
    CacheOptions
    Namespace: PnP.Framework.Modernization.Cache
    Assembly: PnP.Framework.dll
    Syntax
    public class CacheOptions : MemoryDistributedCacheOptions, ICacheOptions

    Constructors

    CacheOptions()

    Declaration
    public CacheOptions()

    Properties

    EntryOptions

    Default cache entry configuration, will be used to save items to the cache

    Declaration
    public DistributedCacheEntryOptions EntryOptions { get; set; }
    Property Value
    DistributedCacheEntryOptions

    Implements
    ICacheOptions.EntryOptions

    KeyPrefix

    Prefix value that will be prepended to the provided key value

    Declaration
    public string KeyPrefix { get; set; }
    Property Value
    System.String

    Implements
    ICacheOptions.KeyPrefix

    Methods

    GetKey(String)

    Returns the key value to use by the caching system, in this case this will mean prepending the KeyPrefix

    Declaration
    public string GetKey(string key)
    Parameters
    System.String key

    Provided key

    Returns
    System.String

    Key to use by the caching system

    Implements
    ICacheOptions.GetKey(String)

    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