SwiftactorTextUnderstandingRuntime

actor TextUnderstandingRuntime.PipelineManager.Cache

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 3

  1. fieldvar $defaultActor: Builtin.DefaultActorStorage+0x10
  2. fieldvar memoryCache: TextUnderstandingFoundation.LRUCache<TextUnderstandingRuntime.PipelineManager.Cache.Key, Result<TextUnderstandingRuntime.ProcessorOutput, TextUnderstanding.TextProcessingError>>
  3. fieldvar persistentStore: TextUnderstandingRuntime.PipelineManager.Cache.PersistentStoring?
actor TextUnderstandingRuntime.PipelineManager.Cache {
    struct PersistableOutput {
        enum CodingKeys {
            case result
            case documentLanguage
        }
        var result: TextUnderstanding.ProcessingResult?
        var documentLanguage: Swift.String?
    }
    struct SQLStore {
        let database: GRDBInternal.DatabasePool
        let maxEntries: Swift.Int
    }
    struct Key {
        var identifier: Swift.String
        var inputHash: Swift.UInt64
    }
    protocol PersistentStoring {
        // Kind: Method, isAsync: true, isInstance: true

        // Kind: Method, isAsync: true, isInstance: true

        // Kind: Method, isAsync: true, isInstance: true

        // Kind: Method, isAsync: true, isInstance: true
    }
    var memoryCache: TextUnderstandingFoundation.LRUCache<TextUnderstandingRuntime.PipelineManager.Cache.Key, Swift.Result<TextUnderstandingRuntime.ProcessorOutput, TextUnderstanding.TextProcessingError>>
    var persistentStore: (any TextUnderstandingRuntime.PipelineManager.Cache.PersistentStoring)?
}