Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDocumentDataCacheManager

Entity for managing the document data cache

Hierarchy

  • IDocumentDataCacheManager

Index

Methods

tryClearCache

  • tryClearCache(documentArtifactId: number, productionArtifactId?: number, longTextArtifactId?: number): boolean
  • Tries to remove an item from the cache with the given key

    If it exists, and the removal is approved by event handlers

    deprecated

    Use tryClearCacheForQueueItem instead.

    Parameters

    • documentArtifactId: number

      document artifact id for the document data

    • Optional productionArtifactId: number
    • Optional longTextArtifactId: number

    Returns boolean

    Whether an item was removed

tryClearCacheForQueueItem

  • tryClearCacheForQueueItem(queueItem: IQueueItem, productionArtifactId?: number, longTextArtifactId?: number): boolean
  • Tries to remove an item from the cache with the given key

    If it exists, and the removal is approved by event handlers

    Parameters

    • queueItem: IQueueItem

      queue item for the document data

    • Optional productionArtifactId: number
    • Optional longTextArtifactId: number

    Returns boolean

    Whether an item was removed