mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 18:24:02 +00:00
Channels caching
This commit is contained in:
@@ -19,6 +19,8 @@ struct VideosCacheModel: CacheModel {
|
||||
func storeVideo(_ video: Video) {
|
||||
logger.info("caching \(video.cacheKey)")
|
||||
try? storage?.setObject(video.json, forKey: video.cacheKey)
|
||||
|
||||
ChannelsCacheModel.shared.storeIfMissing(video.channel)
|
||||
}
|
||||
|
||||
func retrieveVideo(_ cacheKey: String) -> Video? {
|
||||
|
Reference in New Issue
Block a user