/** * @param string $class * @param mixed $primaryKey * @return mixed[] */ protected function getDependencies($class, $primaryKey) { return array(Cache::TAGS => array(Helpers::formatCacheTag($class, $primaryKey))); }
/** * @param mixed $object * @return mixed[] */ public function getCacheDependenciesByObject($object) { $primaryKey = $this->getPrimaryKeyByObject($object); return array(Cache::TAGS => array(Helpers::formatCacheTag(get_class($object), $primaryKey[self::PRIMARY_KEY]))); }