()
| 440 | } |
| 441 | |
| 442 | func ExampleClient_TxPipelined() { |
| 443 | var incr *redis.IntCmd |
| 444 | _, err := rdb.TxPipelined(ctx, func(pipe redis.Pipeliner) error { |
| 445 | incr = pipe.Incr(ctx, "tx_pipelined_counter") |
| 446 | pipe.Expire(ctx, "tx_pipelined_counter", time.Hour) |
| 447 | return nil |
| 448 | }) |
| 449 | fmt.Println(incr.Val(), err) |
| 450 | // Output: 1 <nil> |
| 451 | } |
| 452 | |
| 453 | func ExampleClient_TxPipeline() { |
| 454 | pipe := rdb.TxPipeline() |
nothing calls this directly
no test coverage detected
searching dependent graphs…