Skip to content

Commit

Permalink
Merge pull request redis#2001 from Richtermeister/patch-2
Browse files Browse the repository at this point in the history
fix: add missing Expire methods to Cmdable
  • Loading branch information
vmihailenco authored Jan 23, 2022
2 parents bf8d4aa + 17e3b43 commit 2321414
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ type Cmdable interface {
Exists(ctx context.Context, keys ...string) *IntCmd
Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
Keys(ctx context.Context, pattern string) *StringSliceCmd
Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
Move(ctx context.Context, key string, db int) *BoolCmd
Expand Down

0 comments on commit 2321414

Please sign in to comment.