If a serilaizer is specified any value can be passed

all of the set based commands accept any value if a serializer is set

see https://github.com/phpredis/phpredis#setoption
This commit is contained in:
Scott Dutton 2019-07-17 06:10:02 +01:00 committed by GitHub
parent 49570ff93f
commit 1057e8327b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -335,7 +335,7 @@ class Redis
* Set the string value in argument as value of the key.
*
* @param string $key
* @param string $value
* @param mixed $value
* @param int|array $timeout [optional] Calling setex() is preferred if you want a timeout.<br>
* Since 2.6.12 it also supports different flags inside an array. Example ['NX', 'EX' => 60]<br>
* EX seconds -- Set the specified expire time, in seconds.<br>
@ -354,7 +354,7 @@ class Redis
*
* @param string $key
* @param int $ttl
* @param string $value
* @param mixed $value
* @return bool TRUE if the command is successful.
* @link https://redis.io/commands/setex
* @example $redis->setex('key', 3600, 'value'); // sets key → value, with 1h TTL.
@ -365,7 +365,7 @@ class Redis
* Set the string value in argument as value of the key if the key doesn't already exist in the database.
*
* @param string $key
* @param string $value
* @param mixed $value
* @return bool TRUE in case of success, FALSE in case of failure.
* @link https://redis.io/commands/setnx
* @example