source/Core/FileCache.php
public function setToCache($key, $value)
    {
        $fileName = $this->getCacheFilePath($key);
        $cacheDirectory = $this->getCacheDir();

        $tmpFile = $cacheDirectory . "/" . basename($fileName) . uniqid('.temp', true) . '.txt';
        file_put_contents($tmpFile, serialize($value), LOCK_EX);

        rename($tmpFile, $fileName);
    }
public function setToCache($key, $value)
    {
        $fileName = $this->getCacheFilePath($key);
        $cacheDirectory = $this->getCacheDir();

        $tmpFile = $cacheDirectory . "/" . basename($fileName) . uniqid('.temp', true) . '.txt';
        file_put_contents($tmpFile, serialize($value), LOCK_EX);

        rename($tmpFile, $fileName);
    }
public function setToCache ( $ key , $ value ) { $ fileName = $ this -> getCacheFilePath ( $ key ) ; $ cacheDirectory = $ this -> getCacheDir ( ) ; $ tmpFile = $ cacheDirectory . "/" . basename ( $ fileName ) . uniqid ( '.temp' , true ) . '.txt' ; file_put_contents ( $ tmpFile , serialize ( $ value ) , LOCK_EX ) ; rename ( $ tmpFile , $ fileName ) ; }
Caches item value by given key.

@param string $key   cached item key.
@param mixed  $value
Caches item value by given key .