1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 17:38:07 +01:00
Telegram/Telegraph/PSKeyValueStore.h
2014-07-10 18:11:09 +04:00

14 lines
348 B
Objective-C

#import <Foundation/Foundation.h>
#import "PSKeyValueReader.h"
#import "PSKeyValueWriter.h"
@protocol PSKeyValueStore <NSObject>
- (void)readFromTable:(NSString *)name inTransaction:(void (^)(id<PSKeyValueReader>))transaction;
- (void)writeToTable:(NSString *)name inTransaction:(void (^)(id<PSKeyValueWriter>))transaction;
- (void)sync;
@end