Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/icholy/vedis

GCO bindings to Vedis: An Embeddable Datastore Engine
https://github.com/icholy/vedis

Last synced: 1 day ago
JSON representation

GCO bindings to Vedis: An Embeddable Datastore Engine

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())
}
```