/** * @param UncacherBaseDaoWorker $uncacher * @return UncacherBaseDaoWorker */ private function mergeSelf(UncacherBaseDaoWorker $uncacher) { foreach ($uncacher->getClassNameMap() as $className => $idKeys) { if (isset($this->classNameMap[$className])) { $this->classNameMap[$className] = ArrayUtils::mergeUnique($this->classNameMap[$className], $idKeys); } else { $this->classNameMap[$className] = $idKeys; } } return $this; }
public function uncacheByQuery(SelectQuery $query) { return $this->registerUncacher(UncacherBaseDaoWorker::create($this->className, $this->makeQueryKey($query, self::SUFFIX_QUERY))); }