Skip to content

Commit 2321414

Browse files
authored
Merge pull request #2001 from Richtermeister/patch-2
fix: add missing Expire methods to Cmdable
2 parents bf8d4aa + 17e3b43 commit 2321414

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)