23 lines
405 B
Swift
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
|
|
}
|
|
|
|
}
|