From 4c1aada5aebf0afde266b512ed069f822148c3a2 Mon Sep 17 00:00:00 2001 From: "Georges.L" Date: Wed, 8 Sep 2021 18:05:55 +0200 Subject: [PATCH] Updated set, setex, setexp type hint (#710) --- src/ClientInterface.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ClientInterface.php b/src/ClientInterface.php index 66a6a40e..c2e2497b 100644 --- a/src/ClientInterface.php +++ b/src/ClientInterface.php @@ -15,6 +15,7 @@ use Predis\Command\CommandInterface; use Predis\Command\FactoryInterface; use Predis\Configuration\OptionsInterface; use Predis\Connection\ConnectionInterface; +use Predis\Response\Status; /** * Interface defining a client able to execute commands against Redis. @@ -60,10 +61,10 @@ use Predis\Connection\ConnectionInterface; * @method array mget(array $keys) * @method mixed mset(array $dictionary) * @method int msetnx(array $dictionary) - * @method mixed psetex($key, $milliseconds, $value) - * @method mixed set($key, $value, $expireResolution = null, $expireTTL = null, $flag = null) + * @method Status psetex($key, $milliseconds, $value) + * @method Status set($key, $value, $expireResolution = null, $expireTTL = null, $flag = null) * @method int setbit($key, $offset, $value) - * @method int setex($key, $seconds, $value) + * @method Status setex($key, $seconds, $value) * @method int setnx($key, $value) * @method int setrange($key, $offset, $value) * @method int strlen($key)