ZXKVStoreiOS 键值存储

联合创作 · 2023-09-27

ZXKVStore 是一个简单易用的键值数据存储。   

使用:

println(ZXKV["homepage"]) //nil        
ZXKV["homepage"] = "http://www.zhangxi.me"  // store a value to the key
println(ZXKV["homepage"]) //http://www.zhangxi.me
let array = ["abc","123"]
ZXKV["array"] = array
println(ZXKV["array"])  //["abc","123"]
//any object which implemented NSCoding can be stored.
浏览 1
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报