mirror of
https://gitee.com/johng/gf.git
synced 2024-12-02 04:07:47 +08:00
23 lines
324 B
Plaintext
23 lines
324 B
Plaintext
|
# redis
|
||
|
GoFrame `gredis.Adapter` implements using `go-redis`.
|
||
|
|
||
|
# Installation
|
||
|
```
|
||
|
go get -u github.com/gogf/gf/contrib/nosql/redis/v2
|
||
|
```
|
||
|
|
||
|
Commonly imported at top of `main.go`:
|
||
|
```go
|
||
|
package main
|
||
|
|
||
|
import (
|
||
|
_ "github.com/gogf/gf/contrib/nosql/redis/v2"
|
||
|
|
||
|
// Other imported packages.
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
// Main logics.
|
||
|
}
|
||
|
```
|