https://github.com/leafney/rose-redis
Implement encapsulation of redis methods
https://github.com/leafney/rose-redis
rose
Last synced: 3 months ago
JSON representation
Implement encapsulation of redis methods
- Host: GitHub
- URL: https://github.com/leafney/rose-redis
- Owner: leafney
- License: gpl-3.0
- Created: 2023-03-20T02:42:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-01-20T17:36:16.000Z (4 months ago)
- Last Synced: 2025-01-20T18:32:45.504Z (4 months ago)
- Topics: rose
- Language: Go
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rose-redis
## Introduce
Derived from the built-in `redis` methods in `go-zero` project, we have enhanced and optimized operations on `redis`.
## Install
```
go get -u github.com/leafney/rose-redis
```## Use
```go
// client,err := rredis.NewRedis("127.0.0.1:6379", nil)
client, err := NewRedis("127.0.0.1:6379", &Option{
DB: 3,
Type: TypeNode,
})
if err != nil{
fmt.Println(err)
return
}
client.Set("hello", "world")
```## Methods
### zset
- ZRange
- ZRangeCtx
-
- ZRangeByScore
- ZRangeByScoreCtx
- ZRangeByScoreAll
- ZRangeByScoreAllCtx
- ZRangeByScoreAndLimit
- ZRangeByScoreAndLimitCtx
- ZRangeByScoreAllAndLimit
- ZRangeByScoreAllAndLimitCtx
-
- ZRangeWithScores
- ZRangeWithScoresCtx
- ZRangeWithScoresFloat
- ZRangeWithScoresFloatCtx
-
- ZRangeByScoreWithScores
- ZRangeByScoreWithScoresCtx
- ZRangeByScoreWithScoresAll
- ZRangeByScoreWithScoresAllCtx
- ZRangeByScoreWithScoresInt64
- ZRangeByScoreWithScoresInt64Ctx
- ZRangeByScoreWithScoresFloat
- ZRangeByScoreWithScoresFloatCtx
-
- ZRangeByScoreWithScoresAndLimit
- ZRangeByScoreWithScoresAndLimitCtx
- ZRangeByScoreWithScoresAllAndLimit
- ZRangeByScoreWithScoresAllAndLimitCtx
-
- ZRangeByScoreWithScoresInt64AndLimit
- ZRangeByScoreWithScoresInt64AndLimitCtx
- ZRangeByScoreWithScoresFloatAndLimit
- ZRangeByScoreWithScoresFloatAndLimitCtx
-
- ZRangeByScoreWithScoresInt64AllLimit
- ZRangeByScoreWithScoresInt64AllLimitCtx
- ZRangeByScoreWithScoresFloatAllLimit
- ZRangeByScoreWithScoresFloatAllLimitCtx
-
- ZRevRange
- ZRevRangeCtx
-
- ZRevRangeByScore
- ZRevRangeByScoreCtx
- ZRevRangeByScoreAll
- ZRevRangeByScoreAllCtx
- ZRevRangeByScoreAndLimit
- ZRevRangeByScoreAndLimitCtx
- ZRevRangeByScoreAllAndLimit
- ZRevRangeByScoreAllAndLimitCtx
-
- ZRevRangeByScoreWithScores
- ZRevRangeByScoreWithScoresCtx
- ZRevRangeByScoreWithScoresAll
- ZRevRangeByScoreWithScoresAllCtx
- ZRevRangeByScoreWithScoresInt64
- ZRevRangeByScoreWithScoresInt64Ctx
- ZRevRangeByScoreWithScoresFloat
- ZRevRangeByScoreWithScoresFloatCtx
-
- ZRevRangeByScoreWithScoresAndLimit
- ZRevRangeByScoreWithScoresAndLimitCtx
- ZRevRangeByScoreWithScoresAllAndLimit
- ZRevRangeByScoreWithScoresAllAndLimitCtx
-
- ZRevRangeByScoreWithScoresInt64AndLimit
- ZRevRangeByScoreWithScoresInt64AndLimitCtx
- ZRevRangeByScoreWithScoresFloatAndLimit
- ZRevRangeByScoreWithScoresFloatAndLimitCtx
-
- ZRevRangeByScoreWithScoresInt64AllLimit
- ZRevRangeByScoreWithScoresInt64AllLimitCtx
- ZRevRangeByScoreWithScoresFloatAllLimit
- ZRevRangeByScoreWithScoresFloatAllLimitCtx----