mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-23 10:51:07 +00:00
26 lines
429 B
Go
26 lines
429 B
Go
package test
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/gogf/gf/frame/g"
|
|
"testing"
|
|
)
|
|
|
|
func TestDemo2(t *testing.T) {
|
|
t.Run("Adapters_test", test21)
|
|
}
|
|
|
|
func test21(t *testing.T) {
|
|
c := make(chan bool)
|
|
for i := 0; i < 10000; i++ {
|
|
go func() {
|
|
i, e := g.Redis().Do("get", "GToken:adminIJ1xz+Wve+ZONVMFfXJQMw==50607842719694a7380dc72aacc4a0b4")
|
|
if e != nil {
|
|
fmt.Println(e)
|
|
}
|
|
fmt.Println(string(i.([]byte)))
|
|
}()
|
|
}
|
|
<-c
|
|
}
|