mirror of
https://github.com/yattee/yattee.git
synced 2025-10-12 10:28:11 +00:00
@@ -34,11 +34,11 @@ struct ChannelsCacheModel: CacheModel {
|
||||
store(channel)
|
||||
}
|
||||
|
||||
func retrieve(_ cacheKey: String) -> Channel? {
|
||||
func retrieve(_ cacheKey: String) -> ChannelPage? {
|
||||
logger.debug("retrieving cache for \(cacheKey)")
|
||||
|
||||
if let json = try? storage?.object(forKey: cacheKey) {
|
||||
return Channel.from(json)
|
||||
return ChannelPage(channel: Channel.from(json))
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user