https://github.com/qbart/cyclone
Redis wrapper
https://github.com/qbart/cyclone
go redis
Last synced: about 1 month ago
JSON representation
Redis wrapper
- Host: GitHub
- URL: https://github.com/qbart/cyclone
- Owner: qbart
- License: mit
- Created: 2020-05-11T18:30:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-06-16T00:04:08.000Z (about 5 years ago)
- Last Synced: 2025-10-07T14:48:43.015Z (9 months ago)
- Topics: go, redis
- Language: Go
- Homepage:
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pkg.go.dev/github.com/qbart/cyclone/cyclone)

[](https://github.com/qbart/cyclone/actions)
[](https://goreportcard.com/report/github.com/qbart/cyclone)
[](https://github.com/qbart/cyclone/commits/master)
# cyclone - WIP
Wrapper around [radix](https://github.com/mediocregopher/radix) with some additional TODO-features.
It contains comments from [redis.io/commands](https://redis.io/commands) for a convenience but you should always refer to offical Redis docs.
## Connection
```go
redis := cyclone.NewPool(cyclone.DefaultPool(20)) // or pass radix client
defer redis.Close()
```
## Hash
```go
redis.Hash("stats").Incr("reqs", 1)
redis.Hash("stats").Set("uptime", "0s")
// ...
ch := redis.Hash("big").Scan().Match("*").Count(10).ChanKV(50)
for kv := range ch {
log.Println(kv.Key, "=>", kv.Val)
}
```
## List
```go
redis.List("list").Push("a", "b", "c")
redis.List("list").RPop()
// ...
```