1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 02:17:51 +01:00
Telegram/Share/TGModernCache.h
2015-10-01 19:19:52 +03:00

13 lines
368 B
Objective-C

#import <Foundation/Foundation.h>
@interface TGModernCache : NSObject
- (instancetype)initWithPath:(NSString *)path size:(NSUInteger)size;
- (void)setValue:(NSData *)value forKey:(NSData *)key;
- (void)getValueForKey:(NSData *)key completion:(void (^)(NSData *))completion;
- (NSData *)getValueForKey:(NSData *)key;
- (bool)containsValueForKey:(NSData *)key;
@end