Skip to content

Simple Key/Value store for Swift backed by Unqlite

License

Notifications You must be signed in to change notification settings

RazortoothRTC/SwiftyKVStore

Repository files navigation

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.

About

Simple Key/Value store for Swift backed by Unqlite

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages