Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Go bindings for Kyoto Cabinet library.

branch: master

all: fix licensing

Unfortunately, Kyoto Cabinet is licensed under GPL, so I need to use
this damn license. I can ensure that this project is now frozen ;)
latest commit c09eec810f
Francisco Souza authored February 07, 2013
Octocat-spinner-32 examples all: fix licensing February 07, 2013
Octocat-spinner-32 kc all: fix licensing February 07, 2013
Octocat-spinner-32 .gitignore Updated gitignore February 28, 2012
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 AUTHORS authors: fix text September 10, 2012
Octocat-spinner-32 LICENSE all: fix licensing February 07, 2013
Octocat-spinner-32 README readme: update link to package documentation January 12, 2013
README
Go bindings for kyoto cabinet database

More details on Kyoto Cabinet and how to install it (you need its core library
to use with): http://fallabs.com/kyotocabinet/

You can install gokabinet using go get:

    % go get github.com/fsouza/gokabinet/kc

After installing it, you can use in your Go code. Here is a simple example:

    package main

    import (
        "github.com/fsouza/gokabinet/kc"
    )

    func main() {
        db := kc.Open("/tmp/cache.kch", kc.WRITE)
        defer db.Close()
        db.Set("names", "Maria|João|José")
        db.SetInt("hits", 500)
        for i := 0; i < 100; i++ {
            db.Increment("hits", 1)
        }
    }

For more examples, check the examples directory in the repository.

Online docs provided by GoPkgDoc:
http://godoc.org/github.com/fsouza/gokabinet/kc
Something went wrong with that request. Please try again.