18 lines
531 B
Swift
18 lines
531 B
Swift
import Foundation
|
|
import LocalData
|
|
|
|
/// File system key for non-critical cache data stored in Caches.
|
|
extension StorageKey where Value == Data {
|
|
/// Stores cached data files.
|
|
nonisolated static let cachedData = StorageKey(
|
|
name: "cached_data.bin",
|
|
domain: .fileSystem(directory: .caches),
|
|
security: .none,
|
|
serializer: .data,
|
|
owner: "SampleApp",
|
|
description: "Stores cached binary data that can be regenerated.",
|
|
availability: .all,
|
|
syncPolicy: .never
|
|
)
|
|
}
|