/**
  * Builds the container.
  * @param \System\Db\Database The database to use for the LUT
  * @param callback The callback to call on block execution
  * @param string The unique key, given at the creation of the MemcacheBlock
  * @param int The default timeout for the cacheblock
  */
 public function __construct(\System\Db\Database $db, $callback, $key, $timeout = \System\Cache\PageCache\MemcacheBlock::TIMEOUT_DEFAULT)
 {
     parent::__construct($db, $callback);
     $this->key = $key;
     $this->timemout = $timeout;
 }
Beispiel #2
0
 /**
  * Builds the container.
  * @param \System\Db\Database The database to use for the LUT
  * @param callback The callback to call on block execution
  * @param string The key to store the block in the LUT
  */
 public function __construct(\System\Db\Database $db, $callback, $key)
 {
     parent::__construct($db, $callback);
     $this->key = $key;
 }