mirror of
https://github.com/yattee/yattee.git
synced 2025-08-08 03:34:05 +00:00
Videos cache model
This commit is contained in:
16
Model/Cache/CacheModel.swift
Normal file
16
Model/Cache/CacheModel.swift
Normal file
@@ -0,0 +1,16 @@
|
||||
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:))
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user