1
0
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:
nxshock 2022-12-03 20:57:50 +05:00
parent 8ab9e96ef6
commit 8ef0fd240b

View File

@ -31,12 +31,19 @@ err = db.Set(key, value) // key and value can be any of type
// Read data // Read data
var value ValueType var value ValueType
err = db.Get(key) err = db.Get(key, &value)
// Delete data // Delete data
err = db.Delete(key) err = db.Delete(key)
``` ```
Other methods:
```go
// Flush data to disk
err = db.Flush()
```
## File structure ## File structure
Record is `encoding/gob` structure: Record is `encoding/gob` structure: