Skip to content

Commit 17e3b43

Browse files
fix: add missing Expire methods to Cmdable
This is a followup to #1928
1 parent bf8d4aa commit 17e3b43

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

commands.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ type Cmdable interface {
9696
Exists(ctx context.Context, keys ...string) *IntCmd
9797
Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
9898
ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
99+
ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
100+
ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
101+
ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
102+
ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
99103
Keys(ctx context.Context, pattern string) *StringSliceCmd
100104
Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
101105
Move(ctx context.Context, key string, db int) *BoolCmd

0 commit comments

Comments
 (0)