Pantheon\Terminus\DataStore\FileStore::set PHP Method

set() public method

Saves a value with the given key
public set ( string $key, mixed $data )
$key string A key
$data mixed Data to save to the store
    public function set($key, $data)
    {
        $path = $this->getFileName($key);
        file_put_contents($path, json_encode($data));
    }