Skip to content

Instantly share code, notes, and snippets.

@fghpdf
fghpdf / .eslintrc
Created November 19, 2016 13:08
eslint 配置文件
{
"env": {
"node": true,
"es6": true
},
"globals": {
"_": true,
"Promise": true
},
"rules": {
@knqyf263
knqyf263 / redis_test.go
Last active May 16, 2023 14:11
go-redis pipeline
func TestRedis(t *testing.T) {
s, _ := testutil.PrepareTestRedis()
for i := 0; i < 10000; i++ {
s.Set("key"+strconv.Itoa(i), "hoge"+strconv.Itoa(i))
}
client := redis.NewClient(&redis.Options{Addr: s.Addr()})
// 普通にループ
result := map[string]string{}
for i := 0; i < 10000; i++ {