field_ios

In-the-field app for Radroots on iOS
git clone https://radroots.dev/git/field_ios.git
Log | Files | Refs | README | LICENSE

TeraMediaCacheCleanup.swift (589B)


      1 import Foundation
      2 
      3 struct TeraMediaCacheCleanup: Sendable, Equatable {
      4   let invalidatedEntries: UInt32
      5   let retainedCandidates: UInt32
      6   let remainingEntries: UInt32
      7 }
      8 
      9 extension TeraRuntimeBackend {
     10   func cleanupMediaCache(context _: TeraLocalNetwork) async throws -> TeraMediaCacheCleanup {
     11     throw TeraComposerAcknowledgment.unconfirmed
     12   }
     13 }
     14 
     15 extension TeraRuntimeClient {
     16   func cleanupMediaCache(context: TeraLocalNetwork) async throws -> TeraMediaCacheCleanup {
     17     try await supportOperation("runtime.media.cleanup") { try await $0.cleanupMediaCache(context: context) }
     18   }
     19 }