mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-11 21:12:15 +09:00
Always cast the TTL to integer
This commit is contained in:
parent
6d5480ecfb
commit
3aab255c0d
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ class Cache
|
||||||
{
|
{
|
||||||
if (self::$_driver !== null)
|
if (self::$_driver !== null)
|
||||||
{
|
{
|
||||||
return self::$_driver::set(self::getRealKey($key, $group_name), $value, $ttl) ? true : false;
|
return self::$_driver::set(self::getRealKey($key, $group_name), $value, intval($ttl)) ? true : false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue