()
| 235 | } |
| 236 | |
| 237 | func ExampleClient_Incr() { |
| 238 | result, err := rdb.Incr(ctx, "counter").Result() |
| 239 | if err != nil { |
| 240 | panic(err) |
| 241 | } |
| 242 | |
| 243 | fmt.Println(result) |
| 244 | // Output: 1 |
| 245 | } |
| 246 | |
| 247 | func ExampleClient_BLPop() { |
| 248 | if err := rdb.RPush(ctx, "queue", "message").Err(); err != nil { |