diff --git a/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m b/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m index aacb49e5..933ba74e 100644 --- a/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m +++ b/doric-iOS/Pod/Classes/Plugin/DoricStoragePlugin.m @@ -26,18 +26,18 @@ #define DoricCache PINCache @interface PINCache (Doric) -- (void)setObject:(NSString *)value forKey:(NSString *)key withBlock:(void (^)())block; +- (void)setObject:(NSString *)value forKey:(NSString *)key withBlock:(void (^)(void))block; - (void)objectForKey:(NSString *)key withBlock:(void (^)(NSString *, id ))block; - (void)removeObjectForKey:(NSString *)key withBlock:(void (^)(NSString *))block; -- (void)removeAllObjectsWithBlock:(void (^)())pFunction; +- (void)removeAllObjectsWithBlock:(void (^)(void))pFunction; @end @implementation PINCache (Doric) -- (void)setObject:(NSString *)value forKey:(NSString *)key withBlock:(void (^)())block { +- (void)setObject:(NSString *)value forKey:(NSString *)key withBlock:(void (^)(void))block { [self setObjectAsync:value forKey:key completion:^(id cache, NSString *key, id object) { block(); }]; @@ -55,7 +55,7 @@ - (void)removeObjectForKey:(NSString *)key withBlock:(void (^)(NSString *))block }]; } -- (void)removeAllObjectsWithBlock:(void (^)())block { +- (void)removeAllObjectsWithBlock:(void (^)(void))block { [self removeAllObjectsAsync:^(id cache) { block(); }]; @@ -195,4 +195,4 @@ - (void)clear:(NSDictionary *)argument withPromise:(DoricPromise *)promise { [promise resolve:nil]; }]; } -@end \ No newline at end of file +@end