Search Results for

    Show / Hide Table of Contents
    View Source

    Class AppPolicedCacheDictionary<TKey>

    Provides a base class for implementing a dictionary of IAppPolicyCache.

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class AppPolicedCacheDictionary<TKey> where TKey : notnull
    Type Parameters
    Name Description
    TKey

    The type of the dictionary key.

    Constructors

    View Source

    AppPolicedCacheDictionary(Func<TKey, IAppPolicyCache>)

    Initializes a new instance of the AppPolicedCacheDictionary<TKey> class.

    Declaration
    protected AppPolicedCacheDictionary(Func<TKey, IAppPolicyCache> cacheFactory)
    Parameters
    Type Name Description
    Func<TKey, IAppPolicyCache> cacheFactory

    Methods

    View Source

    ClearAllCaches()

    Clears all caches.

    Declaration
    public void ClearAllCaches()
    View Source

    ClearCache(TKey)

    Clears a cache.

    Declaration
    protected void ClearCache(TKey key)
    Parameters
    Type Name Description
    TKey key
    View Source

    Dispose()

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Releases unmanaged and - optionally - managed resources.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing

    true to release both managed and unmanaged resources; false to release only unmanaged resources.

    View Source

    Get(TKey)

    Tries to get a cache.

    Declaration
    protected Attempt<IAppPolicyCache?> Get(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    Attempt<IAppPolicyCache>
    View Source

    GetOrCreate(TKey)

    Gets or creates a cache.

    Declaration
    public IAppPolicyCache GetOrCreate(TKey key)
    Parameters
    Type Name Description
    TKey key
    Returns
    Type Description
    IAppPolicyCache
    View Source

    Remove(TKey)

    Removes a cache.

    Declaration
    public void Remove(TKey key)
    Parameters
    Type Name Description
    TKey key
    View Source

    RemoveAll()

    Removes all caches.

    Declaration
    public void RemoveAll()
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX