(ctx context.Context, key string, ttl time.Duration)
| 654 | } |
| 655 | |
| 656 | func (c *Client) KVExpire(ctx context.Context, key string, ttl time.Duration) (bool, error) { |
| 657 | cmd, errClient := c.commandClient() |
| 658 | if errClient != nil { |
| 659 | return false, errClient |
| 660 | } |
| 661 | return cmd.Expire(ctx, key, ttl).Result() |
| 662 | } |
| 663 | |
| 664 | func (c *Client) KVTTL(ctx context.Context, key string) (time.Duration, bool, error) { |
| 665 | cmd, errClient := c.commandClient() |
nothing calls this directly
no test coverage detected