From d973395973992954ad11ad9c26fc095beb893353 Mon Sep 17 00:00:00 2001 From: Chad Zeluff Date: Thu, 10 Sep 2015 08:25:34 -0600 Subject: [PATCH 1/2] using proper level 1 cache --- RxExample/RxExample/Services/ImageService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxExample/RxExample/Services/ImageService.swift b/RxExample/RxExample/Services/ImageService.swift index a24c4e42..8412c886 100644 --- a/RxExample/RxExample/Services/ImageService.swift +++ b/RxExample/RxExample/Services/ImageService.swift @@ -61,7 +61,7 @@ class DefaultImageService: ImageService { func imageFromURL(URL: NSURL) -> Observable { return deferred { - let maybeImage = self.imageDataCache.objectForKey(URL) as? Image + let maybeImage = self.imageCache.objectForKey(URL) as? Image let decodedImage: Observable From ae5777f3b2d13655439bc3bb25198cf4d4b11fe8 Mon Sep 17 00:00:00 2001 From: Chad Zeluff Date: Thu, 10 Sep 2015 08:25:59 -0600 Subject: [PATCH 2/2] typo --- RxExample/RxExample/Services/ImageService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RxExample/RxExample/Services/ImageService.swift b/RxExample/RxExample/Services/ImageService.swift index 8412c886..28bf3236 100644 --- a/RxExample/RxExample/Services/ImageService.swift +++ b/RxExample/RxExample/Services/ImageService.swift @@ -28,7 +28,7 @@ class DefaultImageService: ImageService { let $: Dependencies = Dependencies.sharedDependencies - // 1rst level cache + // 1st level cache let imageCache = NSCache() // 2nd level cache