Search Results for

    Show / Hide Table of Contents
    View Source

    Class AppPolicedCacheDictionary<TKey>

    Provides a base class for implementing a dictionary of IAppPolicyCache.

    Inheritance
    System.Object
    Namespace: Umbraco.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public abstract class AppPolicedCacheDictionary<TKey> : IDisposable
    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
    System.Func<TKey, IAppPolicyCache> cacheFactory

    Methods

    View Source

    ClearAllCaches()

    Clears all caches.

    Declaration
    public void ClearAllCaches()
    View Source

    ClearCache(TKey)

    Clears a cache.

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

    Dispose()

    Declaration
    public void Dispose()
    View Source

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    View Source

    Get(TKey)

    Tries to get a cache.

    Declaration
    public 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()
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • AppPolicedCacheDictionary(Func<TKey, IAppPolicyCache>)
    • Methods
      • ClearAllCaches()
      • ClearCache(TKey)
      • Dispose()
      • Dispose(Boolean)
      • Get(TKey)
      • GetOrCreate(TKey)
      • Remove(TKey)
      • RemoveAll()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX