Browse files

v2.1.3

  • Loading branch information...
1 parent fc12c86 commit ad9625212431b362ae906f5e058e459e491e36a7 @shnhrrsn shnhrrsn committed Apr 9, 2015
Showing with 26 additions and 26 deletions.
  1. +25 −25 EGOCache.h
  2. +1 −1 EGOCache.podspec
View
50 EGOCache.h
@@ -45,44 +45,44 @@
+ (nonnull instancetype)globalCache;
// Opitionally create a different EGOCache instance with it's own cache directory
-- (nonnull instancetype)initWithCacheDirectory:(NSString * __nonnull)cacheDirectory;
+- (nonnull instancetype)initWithCacheDirectory:(NSString* __nonnull)cacheDirectory;
- (void)clearCache;
-- (void)removeCacheForKey:(NSString * __nonnull)key;
+- (void)removeCacheForKey:(NSString* __nonnull)key;
-- (BOOL)hasCacheForKey:(NSString * __nonnull)key;
+- (BOOL)hasCacheForKey:(NSString* __nonnull)key;
-- (NSData * __nullable)dataForKey:(NSString * __nonnull)key;
-- (void)setData:(NSData * __nonnull)data forKey:(NSString * __nonnull)key;
-- (void)setData:(NSData * __nonnull)data forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
+- (NSData* __nullable)dataForKey:(NSString* __nonnull)key;
+- (void)setData:(NSData* __nonnull)data forKey:(NSString* __nonnull)key;
+- (void)setData:(NSData* __nonnull)data forKey:(NSString* __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
-- (NSString * __nullable)stringForKey:(NSString * __nonnull)key;
-- (void)setString:(NSString * __nonnull)aString forKey:(NSString * __nonnull)key;
-- (void)setString:(NSString * __nonnull)aString forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
+- (NSString* __nullable)stringForKey:(NSString* __nonnull)key;
+- (void)setString:(NSString* __nonnull)aString forKey:(NSString* __nonnull)key;
+- (void)setString:(NSString* __nonnull)aString forKey:(NSString* __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
-- (NSDate * __nullable)dateForKey:(NSString * __nonnull)key;
-- (NSArray * __nonnull)allKeys;
+- (NSDate* __nullable)dateForKey:(NSString* __nonnull)key;
+- (NSArray* __nonnull)allKeys;
#if TARGET_OS_IPHONE
-- (UIImage * __nullable)imageForKey:(NSString * __nonnull)key;
-- (void)setImage:(UIImage * __nonnull)anImage forKey:(NSString * __nonnull)key;
-- (void)setImage:(UIImage * __nonnull)anImage forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
+- (UIImage* __nullable)imageForKey:(NSString* __nonnull)key;
+- (void)setImage:(UIImage* __nonnull)anImage forKey:(NSString* __nonnull)key;
+- (void)setImage:(UIImage* __nonnull)anImage forKey:(NSString* __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
#else
-- (NSImage* __nullable)imageForKey:(NSString * __nonnull)key;
-- (void)setImage:(NSImage * __nonnull)anImage forKey:(NSString * __nonnull)key;
-- (void)setImage:(NSImage * __nonnull)anImage forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
+- (NSImage* __nullable)imageForKey:(NSString* __nonnull)key;
+- (void)setImage:(NSImage* __nonnull)anImage forKey:(NSString* __nonnull)key;
+- (void)setImage:(NSImage* __nonnull)anImage forKey:(NSString* __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
#endif
-- (NSData * __nullable)plistForKey:(NSString * __nonnull)key;
-- (void)setPlist:(nonnull id)plistObject forKey:(NSString * __nonnull)key;
-- (void)setPlist:(nonnull id)plistObject forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
+- (NSData* __nullable)plistForKey:(NSString* __nonnull)key;
+- (void)setPlist:(nonnull id)plistObject forKey:(NSString* __nonnull)key;
+- (void)setPlist:(nonnull id)plistObject forKey:(NSString* __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
-- (void)copyFilePath:(NSString * __nonnull)filePath asKey:(NSString * __nonnull)key;
-- (void)copyFilePath:(NSString * __nonnull)filePath asKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
+- (void)copyFilePath:(NSString* __nonnull)filePath asKey:(NSString* __nonnull)key;
+- (void)copyFilePath:(NSString* __nonnull)filePath asKey:(NSString* __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
-- (nullable id<NSCoding>)objectForKey:(NSString * __nonnull)key;
-- (void)setObject:(nonnull id<NSCoding>)anObject forKey:(NSString * __nonnull)key;
-- (void)setObject:(nonnull id<NSCoding>)anObject forKey:(NSString * __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
+- (nullable id<NSCoding>)objectForKey:(NSString* __nonnull)key;
+- (void)setObject:(nonnull id<NSCoding>)anObject forKey:(NSString* __nonnull)key;
+- (void)setObject:(nonnull id<NSCoding>)anObject forKey:(NSString* __nonnull)key withTimeoutInterval:(NSTimeInterval)timeoutInterval;
@property(nonatomic) NSTimeInterval defaultTimeoutInterval; // Default is 1 day
@end
View
2 EGOCache.podspec
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "EGOCache"
- s.version = "2.1.2"
+ s.version = "2.1.3"
s.summary = "Fast Caching for Objective-C (iPhone & Mac Compatible)."
s.description = "EGOCache is a simple, thread-safe key value cache store. It has native support for NSString, UI/NSImage, and NSData, but can store anything that implements <NSCoding>. All cached items expire after the timeout, which by default, is one day."
s.homepage = "https://github.com/enormego/EGOCache"

0 comments on commit ad96252

Please sign in to comment.