Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sysulq/redigo-ring
A simple distributed redigo client implement with hash ring.
https://github.com/sysulq/redigo-ring
client hash redigo redis ring
Last synced: 15 days ago
JSON representation
A simple distributed redigo client implement with hash ring.
- Host: GitHub
- URL: https://github.com/sysulq/redigo-ring
- Owner: sysulq
- License: mit
- Created: 2017-12-12T05:48:47.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T14:04:51.000Z (almost 7 years ago)
- Last Synced: 2024-02-03T09:08:07.495Z (10 months ago)
- Topics: client, hash, redigo, redis, ring
- Language: Go
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# redigo-ring
A simple distributed [redigo](https://github.com/garyburd/redigo) client implement with hash ring, inspired by [go-redis](https://github.com/go-redis/redis/blob/master/ring.go).## example
```
ring := rediring.NewRing(&redix.RingOptions{
Addrs: []string{"127.0.0.1:6379", "127.0.0.1:6380"},
})
conn := ring.Pick(key).Get()
defer conn.Close()conn.Do("INFO")
```