mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 08:18:19 +00:00
17 lines
479 B
Swift
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:))
|
|
}
|
|
}
|