mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-17 16:02:17 +09:00
Fix #2219 type error in Redis cache driver
This commit is contained in:
parent
a36ecab8b4
commit
4373208953
1 changed files with 1 additions and 1 deletions
2
common/framework/drivers/cache/redis.php
vendored
2
common/framework/drivers/cache/redis.php
vendored
|
|
@ -203,7 +203,7 @@ class Redis implements \Rhymix\Framework\Drivers\CacheInterface
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$value = (is_scalar($value) && ctype_digit($value)) ? $value : serialize($value);
|
$value = (is_int($value) || ctype_digit((string)$value)) ? $value : serialize($value);
|
||||||
return $this->_conn->setex($key, $ttl, $value) ? true : false;
|
return $this->_conn->setex($key, $ttl, $value) ? true : false;
|
||||||
}
|
}
|
||||||
catch (\RedisException $e)
|
catch (\RedisException $e)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue