Skip to content

Commit

Permalink
updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
priteshrnandgaonkar committed Feb 12, 2017
1 parent 9a2c1df commit 4aa5632
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,16 @@ This `KVStoreManager` has the following API's which eases the storage and fetchi
func insert<T: Hashable>(value: Data, for key: T) throws
func deleteValue<T: Hashable>(for key: T) throws
func update<T: Hashable>(value: Data, for key: T) throws
func getValue<T: Hashable>(for key: T) throws -> Data
func getValue<T: Hashable>(for key: T) -> Data?

```

You can also access the value through subscript syntax, like as follows

``` swift
let data = storeManager[key]
```

The method definitions are self explanatory as to what they perform. The important point is that the `key` which is passed as argument should be of type `Hashable` and the value would be stored as `Data`

You can checkout the example in the framework and play around with it. To get used to this library.

0 comments on commit 4aa5632

Please sign in to comment.