KV存储

KV存储提供各种数据类型的存储接口。

self.manager = [TMFStorageManager sharedManager];
//存储
[self.manager.commonKVManager setString:@"testString" forKey:@"testKey"];

//查询
BOOL isContain = [self.manager.commonKVManager containsKey:@"testKey"];

//读取
[self.manager.commonKVManager getStringForKey:@"testKey" defaultValue:@"123"];
//清除
[self.manager.commonKVManager removeValueForKey:@"testKey"];
Copyright © 2013-2023 Tencent Cloud. all right reserved,powered by GitbookUpdate Time 2023-08-31 14:46:07

results matching ""

    No results matching ""