mirror of
https://github.com/redis/go-redis.git
synced 2025-07-28 06:42:00 +03:00
rename Pipelineable to Pipeliner
This commit is contained in:
@ -159,7 +159,7 @@ func ExampleClient_Scan() {
|
||||
|
||||
func ExampleClient_Pipelined() {
|
||||
var incr *redis.IntCmd
|
||||
_, err := client.Pipelined(func(pipe redis.Pipelineable) error {
|
||||
_, err := client.Pipelined(func(pipe redis.Pipeliner) error {
|
||||
incr = pipe.Incr("pipelined_counter")
|
||||
pipe.Expire("pipelined_counter", time.Hour)
|
||||
return nil
|
||||
@ -187,7 +187,7 @@ func ExampleClient_Pipeline() {
|
||||
|
||||
func ExampleClient_TxPipelined() {
|
||||
var incr *redis.IntCmd
|
||||
_, err := client.TxPipelined(func(pipe redis.Pipelineable) error {
|
||||
_, err := client.TxPipelined(func(pipe redis.Pipeliner) error {
|
||||
incr = pipe.Incr("tx_pipelined_counter")
|
||||
pipe.Expire("tx_pipelined_counter", time.Hour)
|
||||
return nil
|
||||
@ -226,7 +226,7 @@ func ExampleClient_Watch() {
|
||||
return err
|
||||
}
|
||||
|
||||
_, err = tx.Pipelined(func(pipe redis.Pipelineable) error {
|
||||
_, err = tx.Pipelined(func(pipe redis.Pipeliner) error {
|
||||
pipe.Set(key, strconv.FormatInt(n+1, 10), 0)
|
||||
return nil
|
||||
})
|
||||
|
Reference in New Issue
Block a user