Skip to content

Goemon/redis.go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

redis.go

Goemon's redis.go is fork version of Mr. Hoisie's redis.go , a client for the redis key-value store. This fork aims at making more rich redis-client for go.

Some features include:

  • simple usage
  • connection pooling ( with configurable size )
  • support for concurrent access
  • re-opens timed out connections (and re-sends) commands

This library was designed to be robust to concurrency conflicts. It lets you declare one redis client which can be shared amongst all goroutines.

example

//this assumes you have redis running locally on the standard port
var client redis.Client
client.Set("a", strings.Bytes("hello"))
val, _ := client.Get("a")
println(string(val))

See the test file for more examples :)

About

A simple Redis library for Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%