src/Config/Cache/FileCache.php
protected function setCacheFileContent($key, $content, $ttl = 0)
    {
        $result = true;
        $filepath = $this->getCacheFilePath($key);
        $content = serialize($content);
        if (file_put_contents($filepath, $content) === false) {
            $result = false;
        }

        if ($result !== false) {
            $ttl = $ttl + time();
            touch($filepath, $ttl);
        }

        return $result;
    }
protected function setCacheFileContent($key, $content, $ttl = 0)
    {
        $result = true;
        $filepath = $this->getCacheFilePath($key);
        $content = serialize($content);
        if (file_put_contents($filepath, $content) === false) {
            $result = false;
        }

        if ($result !== false) {
            $ttl = $ttl + time();
            touch($filepath, $ttl);
        }

        return $result;
    }
protected function setCacheFileContent ( $ key , $ content , $ ttl = 0 ) { $ result = true ; $ filepath = $ this -> getCacheFilePath ( $ key ) ; $ content = serialize ( $ content ) ; if ( file_put_contents ( $ filepath , $ content ) === false ) { $ result = false ; } if ( $ result !== false ) { $ ttl = $ ttl + time ( ) ; touch ( $ filepath , $ ttl ) ; } return $ result ; }
Save cache key file content

@param mixed $key
@param mixed $content
@param null|int|\DateInterval $ttl
@return bool
Save cache key file content