PSPDFInstantCacheEntryState

enum PSPDFInstantCacheEntryState {}

Bitmask for diagnostics of a cache entry.

  • The cache entry has been corrupted and needs to be purged: it cannot produce usable document descriptors!

    Declaration

    Objective-C

    PSPDFInstantCacheEntryStateCorrupted = 1 << 0

    Swift

    static var corrupted: PSPDFInstantCacheEntryState { get }
  • The cache entry is valid but has no loaded layers.

    In order to reclaim unneeded disk space, it should be purged when the opportunity arises.

    Declaration

    Objective-C

    PSPDFInstantCacheEntryStateUnreferenced = 1 << 1

    Swift

    static var unreferenced: PSPDFInstantCacheEntryState { get }
  • Retrieving metadata for a certain layer failed.

    Whether or not this entry should be purged depends on the “corrupted” flag. This flag should only be set rarely, if ever! Should you see this happen on a regular basis, please report a bug with steps how to reproduce this.

    Declaration

    Objective-C

    PSPDFInstantCacheEntryStateLayerAbsurdity = 1 << 2

    Swift

    static var layerAbsurdity: PSPDFInstantCacheEntryState { get }