(value time.Duration, unit time.Duration)
| 591 | } |
| 592 | |
| 593 | func durationCeil(value time.Duration, unit time.Duration) int64 { |
| 594 | if value <= 0 || unit <= 0 { |
| 595 | return 0 |
| 596 | } |
| 597 | return int64((value + unit - 1) / unit) |
| 598 | } |
| 599 | |
| 600 | func (c *Client) KVGet(ctx context.Context, key string) ([]byte, bool, error) { |
| 601 | cmd, errClient := c.commandClient() |