SwiftyKVStore 0.3.0

SwiftyKVStore 0.3.0

Maintained by xuyecan, H. Li.



  • By
  • xuyecan

SwiftyKVStore

Another simple Key/Value store for Swift backed by Unqlite.

By extracting the minimum feature set of Unqlite, SwiftyKVStore is really simple from top to bottom.

Install

pod 'SwiftyKVStore', '0.2.0'

Usage

let kvStore = SwiftyKVStore(name: "test1")

kvStore.put(key: "key1", value: "value1")

if let value = kvStore.get(key: "key1") {
    print("value: \(value)")
}

kvStore.delete(key: "key1")

if let value = kvStore.get(key: "key1") {
    print("value: \(value)")
} else {
    print("nothing")
}

License

Apache License Version 2.0.