yattee/Model/Cache/CacheModel.swift
2023-02-05 14:24:07 +01:00

17 lines
479 B
Swift

import Foundation
import Logging
struct CacheModel {
static var shared = CacheModel()
let logger = Logger(label: "stream.yattee.cache")
static let bookmarksGroup = "group.stream.yattee.app.bookmarks"
let bookmarksDefaults = UserDefaults(suiteName: Self.bookmarksGroup)
func removeAll() {
guard let bookmarksDefaults else { return }
bookmarksDefaults.dictionaryRepresentation().keys.forEach(bookmarksDefaults.removeObject(forKey:))
}
}