public function write($key, $content, $timestamp = null)
    {
        if (!isset($this->cacheDirectory)) {
            return;
        }

        $this->loadCacheMetaData();
        $this->metaData[$key] = $timestamp;
        $this->dirty = true;

        if (!is_dir($this->cacheDirectory)) {
            mkdir($this->cacheDirectory, 0775, true);
        }
        file_put_contents($this->cacheDirectory . '/' . $key, serialize($content));
    }
public function write($key, $content, $timestamp = null)
    {
        if (!isset($this->cacheDirectory)) {
            return;
        }

        $this->loadCacheMetaData();
        $this->metaData[$key] = $timestamp;
        $this->dirty = true;

        if (!is_dir($this->cacheDirectory)) {
            mkdir($this->cacheDirectory, 0775, true);
        }
        file_put_contents($this->cacheDirectory . '/' . $key, serialize($content));
    }
public function write ( $ key , $ content , $ timestamp = null ) { if ( ! isset ( $ this -> cacheDirectory ) ) { return ; } $ this -> loadCacheMetaData ( ) ; $ this -> metaData [ $ key ] = $ timestamp ; $ this -> dirty = true ; if ( ! is_dir ( $ this -> cacheDirectory ) ) { mkdir ( $ this -> cacheDirectory , 0775 , true ) ; } file_put_contents ( $ this -> cacheDirectory . '/' . $ key , serialize ( $ content ) ) ; }
Write content to cache

@param string  $key       Cache key
@param mixed   $content   Content
@param integer $timestamp Unix timestamp
Write content to cache