PSPDFInstantCacheEntryState
Objective-C
enum PSPDFInstantCacheEntryState : NSUInteger {}
Swift
struct InstantCacheEntryState : OptionSet, @unchecked Sendable
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: InstantCacheEntryState { 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: InstantCacheEntryState { 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: InstantCacheEntryState { get }