mirror of
https://github.com/yattee/yattee.git
synced 2025-08-06 18:54:11 +00:00
Fix clear history, add clear cache
This commit is contained in:
@@ -22,4 +22,9 @@ struct CacheModel {
|
||||
let jsonTransformer = Transformer<JSON>(toData: toData, fromData: fromData)
|
||||
videoStorage = try? Storage<Video.ID, JSON>(diskConfig: videoStorageConfig, memoryConfig: videoStorageMemoryConfig, transformer: jsonTransformer)
|
||||
}
|
||||
|
||||
func removeAll() {
|
||||
try? videoStorage?.removeAll()
|
||||
try? urlBookmarksStorage?.removeAll()
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user