Add comments about the need of cache LRU

This commit is contained in:
Davide De Rosa 2019-04-11 23:21:29 +02:00
parent cf8f0984a3
commit ddb0c38860
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@
import Foundation
// TODO: retain max N pool models at a time (LRU)
public class InfrastructureCache {
public static let shared = InfrastructureCache()

View File

@ -28,6 +28,8 @@ import SwiftyBeaver
private let log = SwiftyBeaver.self
// TODO: retain max N infrastructures at a time (LRU)
public class InfrastructureFactory {
private static func embedded(withName name: Infrastructure.Name) -> Infrastructure {
guard let url = name.bundleURL else {