mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-07 12:00:48 +00:00
20 lines
610 B
Objective-C
20 lines
610 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@class SSignal;
|
|
|
|
@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;
|
|
- (void)getValuePathForKey:(NSData *)key completion:(void (^)(NSString *))completion;
|
|
- (NSData *)getValueForKey:(NSData *)key;
|
|
- (NSString *)getValuePathForKey:(NSData *)key;
|
|
- (bool)containsValueForKey:(NSData *)key;
|
|
- (NSString *)_filePathForKey:(NSData *)key;
|
|
|
|
- (SSignal *)cachedItemForKey:(NSData *)key;
|
|
|
|
@end
|