Sulu\Bundle\PreviewBundle\Preview\Preview::save PHP Method

save() protected method

Save the object.
protected save ( string $token, string $object )
$token string
$object string
    protected function save($token, $object)
    {
        $data = $this->getProvider(get_class($object))->serialize($object);
        $data = sprintf("%s\n%s", get_class($object), $data);
        $this->dataCache->save($token, $data, $this->cacheLifeTime);
    }