mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +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)
|
||||
{
|
||||
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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue