Update documentation

This commit is contained in:
haad 2017-12-02 06:33:30 +01:00
parent a7d60e2d9a
commit 0773c22c48
2 changed files with 4 additions and 2 deletions

4
API.md
View File

@ -151,7 +151,9 @@ const db = await orbitdb.keyvalue(anotherkvdb.address)
```javascript
await db.set('hello', { name: 'Friend' })
```
*set() is an alias of put(). They both work the same.*
#### get(key)
```javascript
const value = db.get('hello')

View File

@ -8,7 +8,7 @@
> A peer-to-peer database for the decentralized web
`orbit-db` is a serverless, distributed, peer-to-peer database. `orbit-db` uses [IPFS](https://ipfs.io) as its data storage and [IPFS Pubsub](https://github.com/ipfs/go-ipfs/blob/master/core/commands/pubsub.go#L23) to automatically sync databases with peers. It's an eventually consistent database that uses [CRDTs](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type) for conflict-free database merges making `orbit-db` and excellent choice for offline-first applications.
`orbit-db` is a serverless, distributed, peer-to-peer database. `orbit-db` uses [IPFS](https://ipfs.io) as its data storage and [IPFS Pubsub](https://github.com/ipfs/go-ipfs/blob/master/core/commands/pubsub.go#L23) to automatically sync databases with peers. It's an eventually consistent database that uses [CRDTs](https://en.wikipedia.org/wiki/Conflict-free_replicated_data_type) for conflict-free database merges making `orbit-db` an excellent choice for decentralized apps (dApps), blockchain applications and offline-first web applications.
Data in `orbit-db` can be stored in a