Search Results for

    Show / Hide Table of Contents
    View Source

    Class NoCacheRepositoryCachePolicy<TEntity, TId>

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Core.Cache
    Assembly: Umbraco.Core.dll
    Syntax
    public class NoCacheRepositoryCachePolicy<TEntity, TId> : IRepositoryCachePolicy<TEntity, TId> where TEntity : class, IEntity
    Type Parameters
    Name Description
    TEntity
    TId

    Properties

    View Source

    Instance

    Declaration
    public static NoCacheRepositoryCachePolicy<TEntity, TId> Instance { get; }
    Property Value
    Type Description
    NoCacheRepositoryCachePolicy<TEntity, TId>

    Methods

    View Source

    ClearAll()

    Declaration
    public void ClearAll()
    View Source

    Create(TEntity, Action<TEntity>)

    Declaration
    public void Create(TEntity entity, Action<TEntity> persistNew)
    Parameters
    Type Name Description
    TEntity entity
    Action<TEntity> persistNew
    View Source

    Delete(TEntity, Action<TEntity>)

    Declaration
    public void Delete(TEntity entity, Action<TEntity> persistDeleted)
    Parameters
    Type Name Description
    TEntity entity
    Action<TEntity> persistDeleted
    View Source

    Exists(TId, Func<TId, Boolean>, Func<TId[], Nullable<IEnumerable<TEntity>>>)

    Declaration
    public bool Exists(TId id, Func<TId, bool> performExists, Func<TId[], IEnumerable<TEntity>?> performGetAll)
    Parameters
    Type Name Description
    TId id
    Func<TId, System.Boolean> performExists
    Func<TId[], System.Nullable<IEnumerable<TEntity>>> performGetAll
    Returns
    Type Description
    System.Boolean
    View Source

    Get(TId, Func<TId, TEntity>, Func<TId[], Nullable<IEnumerable<TEntity>>>)

    Declaration
    public TEntity Get(TId id, Func<TId, TEntity> performGet, Func<TId[], IEnumerable<TEntity>?> performGetAll)
    Parameters
    Type Name Description
    TId id
    Func<TId, TEntity> performGet
    Func<TId[], System.Nullable<IEnumerable<TEntity>>> performGetAll
    Returns
    Type Description
    TEntity
    View Source

    GetAll(TId[], Func<TId[], Nullable<IEnumerable<TEntity>>>)

    Declaration
    public TEntity[] GetAll(TId[] ids, Func<TId[], IEnumerable<TEntity>?> performGetAll)
    Parameters
    Type Name Description
    TId[] ids
    Func<TId[], System.Nullable<IEnumerable<TEntity>>> performGetAll
    Returns
    Type Description
    TEntity[]
    View Source

    GetCached(TId)

    Declaration
    public TEntity GetCached(TId id)
    Parameters
    Type Name Description
    TId id
    Returns
    Type Description
    TEntity
    View Source

    Update(TEntity, Action<TEntity>)

    Declaration
    public void Update(TEntity entity, Action<TEntity> persistUpdated)
    Parameters
    Type Name Description
    TEntity entity
    Action<TEntity> persistUpdated
    • Improve this Doc
    • View Source
    In This Article
    • Properties
      • Instance
    • Methods
      • ClearAll()
      • Create(TEntity, Action<TEntity>)
      • Delete(TEntity, Action<TEntity>)
      • Exists(TId, Func<TId, Boolean>, Func<TId[], Nullable<IEnumerable<TEntity>>>)
      • Get(TId, Func<TId, TEntity>, Func<TId[], Nullable<IEnumerable<TEntity>>>)
      • GetAll(TId[], Func<TId[], Nullable<IEnumerable<TEntity>>>)
      • GetCached(TId)
      • Update(TEntity, Action<TEntity>)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX