Bluz\Controller\Reflection::prepareCache PHP Метод

prepareCache() защищенный Метод

Prepare Cache
protected prepareCache ( string $cache ) : integer
$cache string
Результат integer
    protected function prepareCache($cache)
    {
        $num = (int) $cache;
        $time = substr($cache, strpos($cache, ' '));
        switch ($time) {
            case 'day':
            case 'days':
                return (int) $num * 60 * 60 * 24;
            case 'hour':
            case 'hours':
                return (int) $num * 60 * 60;
            case 'min':
            default:
                return (int) $num * 60;
        }
    }