summaryrefslogtreecommitdiff
path: root/src/expire.c
diff options
context:
space:
mode:
authorWen Hui <wen.hui.ware@gmail.com>2022-04-28 01:13:04 -0400
committerGitHub <noreply@github.com>2022-04-28 08:13:04 +0300
commitf36eac9f68308e712c3f10de11c05982df03b0c6 (patch)
treed7e0a864378a7688894f296563fabe67c431204a /src/expire.c
parent89772ed827209c3dca376644498a235ef3edf692 (diff)
downloadredis-f36eac9f68308e712c3f10de11c05982df03b0c6.tar.gz
Update the comments of commands introduced or updated in redis 7.0 (#10659)
Diffstat (limited to 'src/expire.c')
-rw-r--r--src/expire.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/expire.c b/src/expire.c
index f49e371b6..a6a40450e 100644
--- a/src/expire.c
+++ b/src/expire.c
@@ -662,22 +662,22 @@ void expireGenericCommand(client *c, long long basetime, int unit) {
}
}
-/* EXPIRE key seconds */
+/* EXPIRE key seconds [ NX | XX | GT | LT] */
void expireCommand(client *c) {
expireGenericCommand(c,mstime(),UNIT_SECONDS);
}
-/* EXPIREAT key time */
+/* EXPIREAT key unix-time-seconds [ NX | XX | GT | LT] */
void expireatCommand(client *c) {
expireGenericCommand(c,0,UNIT_SECONDS);
}
-/* PEXPIRE key milliseconds */
+/* PEXPIRE key milliseconds [ NX | XX | GT | LT] */
void pexpireCommand(client *c) {
expireGenericCommand(c,mstime(),UNIT_MILLISECONDS);
}
-/* PEXPIREAT key ms_time */
+/* PEXPIREAT key unix-time-milliseconds [ NX | XX | GT | LT] */
void pexpireatCommand(client *c) {
expireGenericCommand(c,0,UNIT_MILLISECONDS);
}