From 95bd184be9ad4ea38b8b190a3b7ee3a67ca893d8 Mon Sep 17 00:00:00 2001 From: Pavlo Yatsukhnenko Date: Sun, 17 Sep 2023 10:25:55 +0300 Subject: [PATCH] Update redis.stub.php --- redis.stub.php | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/redis.stub.php b/redis.stub.php index 05a7ebd..5ba06f3 100644 --- a/redis.stub.php +++ b/redis.stub.php @@ -1091,8 +1091,9 @@ class Redis { * redis-server >= 7.0.0 you may send an additional "mode" argument which * modifies how the command will execute. * - * @param string $key The key to set an expiration on. - * @param string $mode A two character modifier that changes how the + * @param string $key The key to set an expiration on. + * @param int $timeout The number of seconds after which key will be automatically deleted. + * @param string|null $mode A two character modifier that changes how the * command works. * * NX - Set expiry only if key has no expiry @@ -1122,9 +1123,9 @@ class Redis { /** * Set a key to expire at an exact unix timestamp. * - * @param string $key The key to set an expiration on. - * @param int $timestamp The unix timestamp to expire at. - * @param string $mode An option 'mode' that modifies how the command acts (see {@link Redis::expire}). + * @param string $key The key to set an expiration on. + * @param int $timestamp The unix timestamp to expire at. + * @param string|null $mode An option 'mode' that modifies how the command acts (see {@link Redis::expire}). * @return Redis|bool True if an expiration was set, false if not. * * @see https://redis.io/commands/expireat @@ -2256,8 +2257,9 @@ class Redis { * * @see Redis::expire() for a description of the mode argument. * - * @param string $key The key to set an expiration on. - * @param string $mode A two character modifier that changes how the + * @param string $key The key to set an expiration on. + * @param int $timeout The number of milliseconds after which key will be automatically deleted. + * @param string|null $mode A two character modifier that changes how the * command works. * * @return Redis|bool True if an expiry was set on the key, and false otherwise. @@ -2270,8 +2272,9 @@ class Redis { * * @see Redis::expire() For a description of the mode argument. * - * @param string $key The key to set an expiration on. - * @param string $mode A two character modifier that changes how the + * @param string $key The key to set an expiration on. + * @param int $timestamp The unix timestamp to expire at. + * @param string|null $mode A two character modifier that changes how the * command works. * * @return Redis|bool True if an expiration was set on the key, false otherwise.