/**
  * @param string $class
  * @param mixed $primaryKey
  * @return mixed[]
  */
 protected function getDependencies($class, $primaryKey)
 {
     return array(Cache::TAGS => array(Helpers::formatCacheTag($class, $primaryKey)));
 }
示例#2
0
 /**
  * @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])));
 }