MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / KVExpire

Method KVExpire

internal/home/client.go:656–662  ·  view source on GitHub ↗
(ctx context.Context, key string, ttl time.Duration)

Source from the content-addressed store, hash-verified

654}
655
656func (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
664func (c *Client) KVTTL(ctx context.Context, key string) (time.Duration, bool, error) {
665 cmd, errClient := c.commandClient()

Callers

nothing calls this directly

Calls 1

commandClientMethod · 0.95

Tested by

no test coverage detected