【Go】go-redis使用
点击阅读更多查看文章内容
go-redis
redis/go-redis: Redis Go client
安装:go get github.com/redis/go-redis/v9
建立连接:
1 | rdb := redis.NewClient(&redis.Options{ |
Set/Get:
1 | ctx := context.Background() |
点击阅读更多查看文章内容
redis/go-redis: Redis Go client
安装:go get github.com/redis/go-redis/v9
建立连接:
1 | rdb := redis.NewClient(&redis.Options{ |
Set/Get:
1 | ctx := context.Background() |