public function __construct(GenericDAO $dao) { parent::__construct($dao); if (($cache = Cache::me()) instanceof WatermarkedPeer) { $watermark = $cache->mark($this->className)->getActualWatermark(); } else { $watermark = null; } $this->classKey = $this->keyToInt($watermark . $this->className); $this->handler = $this->spawnHandler($this->classKey); }
protected function makeQueryKey(SelectQuery $query, $suffix) { return parent::makeQueryKey($query, $suffix) . $this->getLayerId(); }
public function uncacheLists() { $this->handler->drop(); return parent::uncacheLists(); }
public function __construct(GenericDAO $dao) { parent::__construct($dao); $this->indexKey = $this->watermark . $this->className . self::SUFFIX_INDEX; }