mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
41a548462007e5101d823dc5ccf4479de5af3814
Fixes https://github.com/gogf/gf/issues/4298 Fixes https://github.com/gogf/gf/issues/2196 Fixes https://github.com/gogf/gf/issues/2135 ```go import goredis "github.com/redis/go-redis/v9" func ExampleUsage(ctx context.Context, redis *Redis) error { client := redis.Client() universalClient, ok := client.(goredis.UniversalClient) if !ok { return errors.New("failed to assert to UniversalClient") } // Use universalClient for advanced operations like Pipeline pipe := universalClient.Pipeline() pipe.Set(ctx, "key1", "value1", 0) pipe.Set(ctx, "key2", "value2", 0) results, err := pipe.Exec(ctx) if err != nil { return err } // ... handle results return nil } ``` --------- Co-authored-by: hailaz <739476267@qq.com>
A powerful framework for faster, easier, and more efficient project development.
Documentation
- GoFrame Official Site: https://goframe.org
- GoFrame Official Site(en): https://goframe.org/en
- GoFrame Mirror Site(中文): https://goframe.org.cn
- GoFrame Mirror Site(github pages): https://pages.goframe.org
- GoDoc API: https://pkg.go.dev/github.com/gogf/gf/v2
Contributors
💖 Thanks to all the contributors who made GoFrame possible 💖
License
GoFrame is licensed under the MIT License, 100% free and open-source, forever.
Languages
GO
100%
