dimensionhub/dimensionhub/Core/DataCache.swift
2025-02-20 22:00:33 +08:00

23 lines
405 B
Swift

//
// DataCache.swift
// dimensionhub
//
// Created by on 2025/2/20.
//
actor DataCache {
public static let shared = DataCache()
private var dateModelCache: [DateModel] = []
func setDateModelCache(_ models: [DateModel]) {
self.dateModelCache = models
}
func getDateModelCache() -> [DateModel] {
return self.dateModelCache
}
}