4545+ (nonnull instancetype )globalCache ;
4646
4747// Opitionally create a different EGOCache instance with it's own cache directory
48- - (nonnull instancetype )initWithCacheDirectory : (NSString * __nonnull)cacheDirectory ;
48+ - (nonnull instancetype )initWithCacheDirectory : (NSString * __nonnull)cacheDirectory ;
4949
5050- (void )clearCache ;
51- - (void )removeCacheForKey : (NSString * __nonnull)key ;
51+ - (void )removeCacheForKey : (NSString * __nonnull)key ;
5252
53- - (BOOL )hasCacheForKey : (NSString * __nonnull)key ;
53+ - (BOOL )hasCacheForKey : (NSString * __nonnull)key ;
5454
55- - (NSData * __nullable)dataForKey : (NSString * __nonnull)key ;
56- - (void )setData : (NSData * __nonnull)data forKey : (NSString * __nonnull)key ;
57- - (void )setData : (NSData * __nonnull)data forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
55+ - (NSData * __nullable)dataForKey : (NSString * __nonnull)key ;
56+ - (void )setData : (NSData * __nonnull)data forKey : (NSString * __nonnull)key ;
57+ - (void )setData : (NSData * __nonnull)data forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
5858
59- - (NSString * __nullable)stringForKey : (NSString * __nonnull)key ;
60- - (void )setString : (NSString * __nonnull)aString forKey : (NSString * __nonnull)key ;
61- - (void )setString : (NSString * __nonnull)aString forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
59+ - (NSString * __nullable)stringForKey : (NSString * __nonnull)key ;
60+ - (void )setString : (NSString * __nonnull)aString forKey : (NSString * __nonnull)key ;
61+ - (void )setString : (NSString * __nonnull)aString forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
6262
63- - (NSDate * __nullable)dateForKey : (NSString * __nonnull)key ;
64- - (NSArray * __nonnull)allKeys ;
63+ - (NSDate * __nullable)dateForKey : (NSString * __nonnull)key ;
64+ - (NSArray * __nonnull)allKeys ;
6565
6666#if TARGET_OS_IPHONE
67- - (UIImage * __nullable)imageForKey : (NSString * __nonnull)key ;
68- - (void )setImage : (UIImage * __nonnull)anImage forKey : (NSString * __nonnull)key ;
69- - (void )setImage : (UIImage * __nonnull)anImage forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
67+ - (UIImage* __nullable)imageForKey : (NSString * __nonnull)key ;
68+ - (void )setImage : (UIImage* __nonnull)anImage forKey : (NSString * __nonnull)key ;
69+ - (void )setImage : (UIImage* __nonnull)anImage forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
7070#else
71- - (NSImage * __nullable)imageForKey : (NSString * __nonnull)key ;
72- - (void )setImage : (NSImage * __nonnull)anImage forKey : (NSString * __nonnull)key ;
73- - (void )setImage : (NSImage * __nonnull)anImage forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
71+ - (NSImage * __nullable)imageForKey : (NSString * __nonnull)key ;
72+ - (void )setImage : (NSImage * __nonnull)anImage forKey : (NSString * __nonnull)key ;
73+ - (void )setImage : (NSImage * __nonnull)anImage forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
7474#endif
7575
76- - (NSData * __nullable)plistForKey : (NSString * __nonnull)key ;
77- - (void )setPlist : (nonnull id )plistObject forKey : (NSString * __nonnull)key ;
78- - (void )setPlist : (nonnull id )plistObject forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
76+ - (NSData * __nullable)plistForKey : (NSString * __nonnull)key ;
77+ - (void )setPlist : (nonnull id )plistObject forKey : (NSString * __nonnull)key ;
78+ - (void )setPlist : (nonnull id )plistObject forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
7979
80- - (void )copyFilePath : (NSString * __nonnull)filePath asKey : (NSString * __nonnull)key ;
81- - (void )copyFilePath : (NSString * __nonnull)filePath asKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
80+ - (void )copyFilePath : (NSString * __nonnull)filePath asKey : (NSString * __nonnull)key ;
81+ - (void )copyFilePath : (NSString * __nonnull)filePath asKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
8282
83- - (nullable id <NSCoding >)objectForKey : (NSString * __nonnull)key ;
84- - (void )setObject : (nonnull id <NSCoding >)anObject forKey : (NSString * __nonnull)key ;
85- - (void )setObject : (nonnull id <NSCoding >)anObject forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
83+ - (nullable id <NSCoding >)objectForKey : (NSString * __nonnull)key ;
84+ - (void )setObject : (nonnull id <NSCoding >)anObject forKey : (NSString * __nonnull)key ;
85+ - (void )setObject : (nonnull id <NSCoding >)anObject forKey : (NSString * __nonnull)key withTimeoutInterval : (NSTimeInterval )timeoutInterval ;
8686
8787@property (nonatomic ) NSTimeInterval defaultTimeoutInterval; // Default is 1 day
8888@end
0 commit comments