redisync
redisync copied to clipboard
Go synchronization on top of Redis using Lua.
Redisync
A Go package which implements synchronization functions on top of Redis. The heavy lifting is done with Lua scripts to make the elimination of race conditions easier.
Note: When using a TTL, the user should take care to finsih execution before the TTL.
Install
$ go install github.com/ryandotsmith/redisync
Usage
See: ./example_test.go
Documentation
Hacking on Redisync
$ go version
go version go1.1.1 darwin/amd64
$ ./redis-server --version
Redis server v=2.6.14 sha=00000000:0 malloc=libc bits=64
$ git clone git://github.com/ryandotsmith/redisync.git
$ go get ./...
$ ./redis-server &
$ go test
