mirror of
https://gitee.com/johng/gf
synced 2026-06-30 11:05:11 +08:00
17 lines
261 B
Go
17 lines
261 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"gitee.com/johng/gf/g"
|
|
"gitee.com/johng/gf/g/util/gconv"
|
|
)
|
|
|
|
func main() {
|
|
redis := g.Redis()
|
|
defer redis.Close()
|
|
redis.Do("SET", "k", "v")
|
|
v, _ := redis.Do("GET", "k")
|
|
fmt.Println(gconv.String(v))
|
|
}
|
|
|