Skip to content

Instantly share code, notes, and snippets.

@nrj
Created September 23, 2011 22:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nrj/1238581 to your computer and use it in GitHub Desktop.
Save nrj/1238581 to your computer and use it in GitHub Desktop.
//
// 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