mirror of
https://gitee.com/johng/gf.git
synced 2024-12-04 21:28:22 +08:00
17 lines
244 B
Go
17 lines
244 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/gogf/gf/frame/g"
|
|
"github.com/gogf/gf/util/gconv"
|
|
)
|
|
|
|
func main() {
|
|
conn := g.Redis().Conn()
|
|
defer conn.Close()
|
|
conn.Do("SET", "k", "v")
|
|
v, _ := conn.Do("GET", "k")
|
|
fmt.Println(gconv.String(v))
|
|
}
|