1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30
yattee/Model/Cache/BookmarksCacheModel.swift

18 lines
472 B
Swift
Raw Permalink Normal View History

2022-12-11 01:38:03 +05:30
import Cache
import Foundation
import Logging
import SwiftyJSON
struct BookmarksCacheModel {
2023-04-22 18:38:33 +05:30
static var shared = Self()
2022-12-11 01:38:03 +05:30
let logger = Logger(label: "stream.yattee.cache")
static let bookmarksGroup = "group.stream.yattee.app.bookmarks"
let defaults = UserDefaults(suiteName: Self.bookmarksGroup)
func clear() {
guard let defaults else { return }
defaults.dictionaryRepresentation().keys.forEach(defaults.removeObject(forKey:))
}
}