SecureStorageSample/SecureStorageSample/StorageKeys/FileSystem/CachedDataKey.swift
Matt Bruce f4a4f1a527 comments
Signed-off-by: Matt Bruce <mbrucedogs@gmail.com>
2026-01-17 12:18:05 -06:00

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
)
}