Search Results for

    Show / Hide Table of Contents
    View Source

    Interface ICacheInstructionRepository

    Represents a repository for CacheInstruction entities.

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface ICacheInstructionRepository : IRepository

    Methods

    View Source

    Add(CacheInstruction)

    Adds a new cache instruction record.

    Declaration
    void Add(CacheInstruction cacheInstruction)
    Parameters
    Type Name Description
    CacheInstruction cacheInstruction
    View Source

    CountAll()

    Gets the count of pending cache instruction records.

    Declaration
    int CountAll()
    Returns
    Type Description
    System.Int32
    View Source

    CountPendingInstructions(Int32)

    Gets the count of pending cache instructions.

    Declaration
    int CountPendingInstructions(int lastId)
    Parameters
    Type Name Description
    System.Int32 lastId
    Returns
    Type Description
    System.Int32
    View Source

    DeleteInstructionsOlderThan(DateTime)

    Deletes cache instructions older than the provided date.

    Declaration
    void DeleteInstructionsOlderThan(DateTime pruneDate)
    Parameters
    Type Name Description
    DateTime pruneDate
    View Source

    Exists(Int32)

    Checks to see if a single cache instruction by Id exists.

    Declaration
    bool Exists(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    System.Boolean
    View Source

    GetMaxId()

    Gets the most recent cache instruction record Id.

    Declaration
    int GetMaxId()
    Returns
    Type Description
    System.Int32
    View Source

    GetPendingInstructions(Int32, Int32)

    Gets a collection of cache instructions created later than the provided Id.

    Declaration
    IEnumerable<CacheInstruction> GetPendingInstructions(int lastId, int maxNumberToRetrieve)
    Parameters
    Type Name Description
    System.Int32 lastId

    Last id processed.

    System.Int32 maxNumberToRetrieve

    The maximum number of instructions to retrieve.

    Returns
    Type Description
    IEnumerable<CacheInstruction>
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Add(CacheInstruction)
      • CountAll()
      • CountPendingInstructions(Int32)
      • DeleteInstructionsOlderThan(DateTime)
      • Exists(Int32)
      • GetMaxId()
      • GetPendingInstructions(Int32, Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX