Cachearium\CacheData::unserialize PHP Method

unserialize() public static method

Unserializes data and returns a new CacheData. This is what you should use to get the object data from the storage.
public static unserialize ( string $data ) : CacheData
$data string
return CacheData
    public static function unserialize($data)
    {
        return unserialize($data);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see \Cachearium\CacheAbstract::getData($k)
  */
 public function getData(CacheKey $k)
 {
     $cd = CacheData::unserialize($this->get($k));
     if ($cd->checkUpdateToDate($this)) {
         return $cd;
     }
     $this->delete($k);
     throw new NotCachedException();
 }
All Usage Examples Of Cachearium\CacheData::unserialize