github.com/cellofellow/gopkg@v0.0.0-20140722061823-eec0544a62ad/database/vedis/doc.go (about)

     1  /*
     2  Package vedis provides the ability to create and access vedis databases.
     3  
     4  Example:
     5  	package main
     6  
     7  	import (
     8  		"chai2010.gopkg/database/vedis"
     9  	)
    10  
    11  	func main() {
    12  		// connect
    13  		store, _ := Open(":mem:")
    14  		defer store.Close()
    15  
    16  		// set key: x value: 123
    17  		_ = store.Exec("SET x 123")
    18  
    19  		// get x
    20  		result, _ := store.ExecResult("GET x")
    21  
    22  		// display it
    23  		fmt.Println("x:", result.Int())
    24  	}
    25  
    26  See http://vedis.symisc.net/
    27  */
    28  package vedis