import Foundation class BooruPageCacheEntry { let posts: [BooruPost] let timestamp: Date var isExpired: Bool { Date().timeIntervalSince(timestamp) > 300 } init(posts: [BooruPost], timestamp: Date) { self.posts = posts self.timestamp = timestamp } }