lib/Cache.php
public function set($key, $data)
    {
        $file = $this->getFilePath($key);

        if ($handle = fopen($file, 'w')) {
            fwrite($handle, $data);
            fclose($handle);
        }
    }
public function set($key, $data)
    {
        $file = $this->getFilePath($key);

        if ($handle = fopen($file, 'w')) {
            fwrite($handle, $data);
            fclose($handle);
        }
    }
public function set ( $ key , $ data ) { $ file = $ this -> getFilePath ( $ key ) ; if ( $ handle = fopen ( $ file , 'w' ) ) { fwrite ( $ handle , $ data ) ; fclose ( $ handle ) ; } }
Set cache data

@param string $key  Cache key
@param string $data Store data
Set cache data