36 | Typealias 37 | SomeLoader 38 |
39 | 40 |public typealias SomeLoader = Loader
41 | public typealias SomeLoader = Loader
41 | public typealias AnyIdentifiableError = Error & Identifiable
41 | Cache
38 | public class Cache<Key: Hashable & Identifiable, Value>
41 | A mutable collection used to store key-value pairs that are subject to eviction when resources are low.
43 | 44 |init(shouldAutomaticallyRemoveStaleItems:)
52 | public init(shouldAutomaticallyRemoveStaleItems autoRemoveStaleItems: Bool = false)
54 | Creates a new Cache
| Name | 64 |Type | 65 |Description | 66 |
|---|---|---|
| autoRemoveStaleItems | 71 |Bool |
72 | Whether to automatically remove stale items, |
74 |