ElggFileCache::save PHP Method

save() public method

Save a key
public save ( string $key, string $data ) : boolean
$key string Name
$data string Value
return boolean
    public function save($key, $data)
    {
        $f = $this->createFile($this->sanitizeFilename($key), "wb");
        if ($f) {
            $result = fwrite($f, $data);
            fclose($f);
            return $result;
        }
        return false;
    }