Exemplo n.º 1
0
Arquivo: TTL.php Projeto: point/cassea
 static function init()
 {
     $d = FilesystemStorage::getDir('')->getParent();
     self::$ttlDir = $d->getDir('ttl');
     self::$namesDir = $d->getDir('names');
     unset($d);
 }
Exemplo n.º 2
0
 public function __destruct()
 {
     $this->sync();
     if ($this->dir->exists()) {
         TTL::queued($this->name, $this->ttl);
     }
     parent::__destruct();
 }