Created
September 23, 2011 22:14
-
-
Save nrj/1238581 to your computer and use it in GitHub Desktop.
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
// | |
// NECacheObject.h | |
// | |
// Created by nrj on 4/28/11. | |
// | |
#import <Foundation/Foundation.h> | |
@interface NECacheObject : NSObject <NSCoding> { | |
NSDate *expireDate; | |
id object; | |
} | |
+ (NECacheObject *)cacheObject:(id)object expiresMinutesFromNow:(NSInteger)expireMinutes; | |
- (BOOL)isExpired; | |
- (void)expireNow; | |
@property(nonatomic, readwrite, retain) NSDate *expireDate; | |
@property(nonatomic, readwrite, retain) id object; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment