mirror of
https://github.com/nxshock/zkv.git
synced 2024-11-27 11:21:02 +05:00
Update README.md
This commit is contained in:
parent
8ab9e96ef6
commit
8ef0fd240b
@ -31,12 +31,19 @@ err = db.Set(key, value) // key and value can be any of type
|
||||
|
||||
// Read data
|
||||
var value ValueType
|
||||
err = db.Get(key)
|
||||
err = db.Get(key, &value)
|
||||
|
||||
// Delete data
|
||||
err = db.Delete(key)
|
||||
```
|
||||
|
||||
Other methods:
|
||||
|
||||
```go
|
||||
// Flush data to disk
|
||||
err = db.Flush()
|
||||
```
|
||||
|
||||
## File structure
|
||||
|
||||
Record is `encoding/gob` structure:
|
||||
|
Loading…
Reference in New Issue
Block a user