#import @interface Cache : NSObject { /* This variable sets the clock for our thread that goes through and cleans the array. * It is set to go off every 15 minutes. This is used by the usleep command. The usleep command * uses microseconds. 1,000,000 microseconds = 1 second. */ int defaultSleepTime; /* This variable sets the timeout limit. If an object is over 30 minutes old it will be removed from the * array. */ NSTimeInterval defaultTimeout; /* This variable is the dictionary that all of the objects are stored in. It contains a key, and an array. * The array should have an object and a timestamp in it. */ NSMutableDictionary *theDictionary; } + (Cache *) getInstance; - (void) removeItem: (NSString *) theID; - (id) get: (NSString *) theID; - (void) put: (NSString *) theID with: (id) theObject; - (void) touch: (NSString *) theID; - (bool) containsKey: (NSString *) theID; - (void) run: (NSTimer *) theTimer; @end