https://github.com/icholy/vedis
GCO bindings to Vedis: An Embeddable Datastore Engine
https://github.com/icholy/vedis
Last synced: over 1 year ago
JSON representation
GCO bindings to Vedis: An Embeddable Datastore Engine
- Host: GitHub
- URL: https://github.com/icholy/vedis
- Owner: icholy
- License: other
- Created: 2014-01-22T16:45:18.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-04-03T14:19:16.000Z (over 12 years ago)
- Last Synced: 2025-04-13T17:13:01.043Z (over 1 year ago)
- Language: C
- Size: 316 KB
- Stars: 9
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# VEDIS
> CGO bindings to vedis
### Docs
* [godoc](http://godoc.org/github.com/icholy/vedis)
* [vedis](http://vedis.symisc.net/)
### Install
``` sh
$ go get github.com/icholy/vedis
```
### Example
``` go
package main
import "github.com/icholy/vedis"
import "fmt"
func main() {
// connect
store, _ := Open(":mem:")
defer store.Close()
// set key: x value: 123
_ = store.Exec("SET x 123")
// get x
result, _ := store.ExecResult("GET x")
// display it
fmt.Println("x:", result.Int())
}
```