Exemplo n.º 1
0
 public function appendRecursionData(CacheData $d)
 {
     if (!$d->getKey()) {
         throw new Exceptions\CacheInvalidDataException();
     }
     $this->addDependency($d->getKey());
     $this->data[] = array('type' => self::CACHEDATA_TYPE_RECURSION_DATA, 'data' => $d->getKey());
     return $this;
 }
Exemplo n.º 2
0
    /**
     * Prints HTML for cache debug probes -> opens tag
     *
     * @param string $key
     * @param CacheData $cachedata
     * @param string $type
     * @codeCoverageIgnore
     */
    protected function printProbeStart($key, CacheData $cachedata, $type)
    {
        echo '<span class="cachearium-debug-probe-begin"
			data-key="' . $key . '" data-base="' . $cachedata->getKey()->base . '" data-id="' . $cachedata->getKey()->id . '" data-sub="' . print_r($cachedata->getKey()->sub, true) . '" data-lifetime="' . $cachedata->lifetime . '" data-backend="' . get_class($this) . '" data-type="' . $type . '"></span>';
    }