SwiftclassPrivateCloudComputeDaemon
class PrivateCloudComputeDaemon.LRUCache
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 15
- deinit
deinit - field
let decoder: Foundation.PropertyListDecoder - field
let encoder: Foundation.PropertyListEncoder - field
let maxAge: Double+0x18 - field
let maxCount: Int+0x10 - field
let state: Synchronization.Mutex<PrivateCloudComputeDaemon.LRUCache<A>.State> - field
let storeURL: Foundation.URL? - func
addToCache(now: Foundation.Date, value: A) -> Bool - func
deleteSavedState() -> () - func
getCachedEntries(now: Foundation.Date) -> [A] - func
loadState(now: Foundation.Date) -> () - func
saveState(now: Foundation.Date) -> () - func
statistics(now: Foundation.Date) -> (count: Int, oldestAgeInDays: Int) - init
PrivateCloudComputeDaemon.LRUCache.__allocating_init(maxCount: Int, maxAge: Double, storeURL: Foundation.URL?) -> PrivateCloudComputeDaemon.LRUCache<A> - typealias
typealias Value = A
Header
class LRUCache<A> where A: Swift.Decodable, A: Swift.Encodable, A: Swift.Hashable { struct State { var memCache: [PrivateCloudComputeDaemon.LRUCache<A>.DatedValue] } struct DatedValue { enum CodingKeys { case date case value } var date: Foundation.Date var value: A } let maxCount: Swift.Int let maxAge: Swift.Double let storeURL: Foundation.URL? let encoder: Foundation.PropertyListEncoder let decoder: Foundation.PropertyListDecoder let state: Synchronization.Mutex<PrivateCloudComputeDaemon.LRUCache<A>.State> init(maxCount: Swift.Int, maxAge: Swift.Double, storeURL: Foundation.URL?) final func addToCache(now: Foundation.Date, value: A) -> Swift.Bool final func statistics(now: Foundation.Date) -> (count: Swift.Int, oldestAgeInDays: Swift.Int) final func deleteSavedState() final func getCachedEntries(now: Foundation.Date) -> [A] final func loadState(now: Foundation.Date) final func saveState(now: Foundation.Date) deinit }