-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added loading object without storing in memory
- Loading branch information
Showing
13 changed files
with
155 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// APSmartStorage+Memory.h | ||
// APSmartStorageSpec | ||
// | ||
// Created by Alexey Belkevich on 4/2/14. | ||
// Copyright (c) 2014 alterplay. All rights reserved. | ||
// | ||
|
||
#import "APSmartStorage.h" | ||
|
||
@interface APSmartStorage (Memory) | ||
|
||
- (void)objectFromMemoryWithURL:(NSURL *)objectURL callback:(void (^)(id object))callback; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// | ||
// APSmartStorage+Memory.m | ||
// APSmartStorageSpec | ||
// | ||
// Created by Alexey Belkevich on 4/2/14. | ||
// Copyright (c) 2014 alterplay. All rights reserved. | ||
// | ||
|
||
#import "APSmartStorage+Memory.h" | ||
#import "APStorageTask.h" | ||
|
||
@interface APSmartStorage (Private) | ||
- (void)memoryObjectForTask:(APStorageTask *)task callback:(void (^)(id object))callback; | ||
@end | ||
|
||
@implementation APSmartStorage (Memory) | ||
|
||
- (void)objectFromMemoryWithURL:(NSURL *)objectURL callback:(void (^)(id object))callback | ||
{ | ||
APStorageTask *task = [[APStorageTask alloc] initWithTaskURL:objectURL]; | ||
[self memoryObjectForTask:task callback:callback]; | ||
} | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters