@@ -655,17 +655,17 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
655
655
url : 'https://redis.io/commands/exists' ,
656
656
} ,
657
657
EXPIRE : {
658
- syntax : 'EXPIRE key seconds' ,
658
+ syntax : 'EXPIRE key seconds [NX|XX|GT|LT] ' ,
659
659
summary : "Set a key's time to live in seconds." ,
660
660
complexity : 'O(1)' ,
661
- since : '1.0.0' ,
661
+ since : '1.0.0, >= 7.0: Added options: NX, XX, GT and LT. ' ,
662
662
url : 'https://redis.io/commands/expire' ,
663
663
} ,
664
664
EXPIREAT : {
665
- syntax : 'EXPIREAT key timestamp' ,
665
+ syntax : 'EXPIREAT key timestamp [NX|XX|GT|LT] ' ,
666
666
summary : 'Set the expiration for a key as a UNIX timestamp.' ,
667
667
complexity : 'O(1)' ,
668
- since : '1.2.0' ,
668
+ since : '1.2.0, >= 7.0: Added options: NX, XX, GT and LT. ' ,
669
669
url : 'https://redis.io/commands/expireat' ,
670
670
} ,
671
671
FAILOVER : {
@@ -1226,17 +1226,17 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
1226
1226
url : 'https://redis.io/commands/persist' ,
1227
1227
} ,
1228
1228
PEXPIRE : {
1229
- syntax : 'PEXPIRE key milliseconds' ,
1229
+ syntax : 'PEXPIRE key milliseconds [NX|XX|GT|LT] ' ,
1230
1230
summary : "Set a key's time to live in milliseconds." ,
1231
1231
complexity : 'O(1)' ,
1232
- since : '2.6.0' ,
1232
+ since : '2.6.0, >= 7.0: Added options: NX, XX, GT and LT. ' ,
1233
1233
url : 'https://redis.io/commands/pexpire' ,
1234
1234
} ,
1235
1235
PEXPIREAT : {
1236
- syntax : 'PEXPIREAT key milliseconds-timestamp' ,
1236
+ syntax : 'PEXPIREAT key milliseconds-timestamp [NX|XX|GT|LT] ' ,
1237
1237
summary : 'Set the expiration for a key as a UNIX timestamp specified in milliseconds.' ,
1238
1238
complexity : 'O(1)' ,
1239
- since : '2.6.0' ,
1239
+ since : '2.6.0, >= 7.0: Added options: NX, XX, GT and LT. ' ,
1240
1240
url : 'https://redis.io/commands/pexpireat' ,
1241
1241
} ,
1242
1242
PFADD : {
@@ -1441,6 +1441,13 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
1441
1441
since : '1.0.0' ,
1442
1442
url : 'https://redis.io/commands/scard' ,
1443
1443
} ,
1444
+ SINTERCARD : {
1445
+ syntax : 'SINTERCARD key [key ...]' ,
1446
+ summary : 'Returns the cardinality of the set which would result from the intersection of all the given sets.' ,
1447
+ complexity : 'O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.' ,
1448
+ since : '7.0.0' ,
1449
+ url : 'https://redis.io/commands/sintercard' ,
1450
+ } ,
1444
1451
1445
1452
/**
1446
1453
* Script
@@ -1784,6 +1791,15 @@ export const RedisHelp: { [key: string]: HelpCommand } = {
1784
1791
since : '1.2.0' ,
1785
1792
url : 'https://redis.io/commands/zcard' ,
1786
1793
} ,
1794
+ ZINTERCARD : {
1795
+ syntax : 'ZINTERCARD numkeys key [key ...]' ,
1796
+ summary :
1797
+ 'This command is similar to ZINTER, but instead of returning the result set, it returns just the cardinality of the result.' ,
1798
+ complexity :
1799
+ 'O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets.' ,
1800
+ since : '7.0.0' ,
1801
+ url : 'https://redis.io/commands/zintercard' ,
1802
+ } ,
1787
1803
ZCOUNT : {
1788
1804
syntax : 'ZCOUNT key min max' ,
1789
1805
summary : 'Count the members in a sorted set with scores within the given values.' ,
0 commit comments